OSGi Community Event 2014
Abstract:
Experience level: Beginner
Apache Karaf is a small OSGi based runtime which provides a lightweight container onto which various components and applications can be deployed.
This session gives an overview over Apache Karaf, how to manage and configure Apache Karaf and how to use the comprehensive command shell that Karaf provides. By the example of a simple pet clinic application we will demonstrate how to build and deploy a web application on Apache Karaf. This talk will introduce the different deployment mechanisms available in Karaf and how to deploy bundles from the file system, command shell or via a maven repository. You will learn how to manage external dependencies via features, use the Karaf maven plugin to create features and build and configure persistence bundles for Apache Karaf. We will further give an overview, how to use Karaf in a cloud environment and how to use the Apache Cellar project to build up an Apache Karaf cluster.
Speaker Bios:
Torsten Frank
Torsten Frank is an entrepreneur and healthcare IT expert with international experience and a strong background in product and business development. He is CEO and founder of medisite, a company that delivers highly specialized healthcare IT solutions to their customers for more than 10 years. medisite is a winner of the Federal Ministry for Economic Affairs and Energy (BMWi) “Trusted Cloud” technology competition, geared toward secure cloud computing for SMEs and the public sector. Torsten Frank holds a medical degree from the Hannover Medical School, where he also has worked for several years as a physician at the Department of Cardiothoracic Surgery after completing his medical studies in Hannover, Germany and Chicago, USA.
Alexander Grzesik
Alexander is the head of development of medisite Systemhaus GmbH and responsible for the development of the the PaaS+ cloud platform the clinical information system m.life and software architect for the TRESOR Project.
He has 15 years of work experience in medical Software development as team leader and software architect.
Expert for Software Architecture, OSGi, Java and Java EE.
Alexander has been a speaker at several conferences including EclipseCon Europe and the OpenShift Community Day.
2. 2
Today‘s speakers
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
TorstenFrank
CEO & Founder
Physician
15+ years experience in business and product development
Healthcare IT expert
Qualified medical device consultant
Alexander Grzesik
Head of software development,
Chief Software Architect
Java Expert
15+ years experience in software development
Validator for computer validation (GAMP 5)
3. 3
medisite & Cloudyle
• Specialized for over 10 years in the development of software focused on the
healthcare market.
• Our products m.life® and m.care® are comprehensive healthcare solutions.
• Expanded to the cloud with the spin-off Cloudyle, with offices in
Berlin, Hannover, Germany and soon in the US.
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
4. 4
Agenda
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
Run
•Files & Folders
•Start andStop
•Command Line
Develop
•Configuration
•Logging
•Web
Deploy
•Maven
•Features
•Kar Archives
Test
•Debug
•Integration Testing
Production
•Clustering
•Cloud
5. 5
Apache KarafHighlights
Flexible ProvisioningandDeployment
Applicationprovisioningby„Features“
Lightweight andmodular
AdvancedLogging
Dynamic Configuration
Command Line
Remote Management
Supports different OSGi Frameworks
Lots ofavailablefeatures
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
6. 6
Apache KarafOverview
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
15. 15
Developer Commands
dev:dump-create
Createsa systemdumpofKaraf
bundle:diag
Givesdetailswhybundledidnot start
bundle:dynamic-import
enable or disable the dynamic import of a given bundle
log:exception-display
Displays the last occurred exception from the log
log:tail
Continuouslydisplaylog entries
bundle:tree-show
Show bundledependencytree
bundle:watch
Automaticupdate frommavenrepo
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
16. 16
PetClinic
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
PetClinic
Persistence
ClinicService
API
Provider
GUI
Feature
https://github.com/Cloudyle/petclinic
JPA-Bundle
Configuration,
Logging
Web App Bundle
Feature generation
31. 31
CellarClustering
Cluster solution for Apache Karaf
Based on Hazelcast
Support for different topologies
Synchronization of deployments and configurations
Cross-Node Event publishing
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
Node
Node
Node
Node
Node
Node
Cluster Manager
32. 32
PaaS+withKarafsupport
CloudylePaaS+allows easy creation of Karafapplications
Try out PetClinichttp://devcenter.cloudyle.com/display/public/PAAS/Pet+Clinic+ Tutorial
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf
33. 33
See youtomorrow:
Build bundles in the cloud -How CloudylePaaS+helps creating OSGi applications in the cloud
Wednesday, October29, 2014
14:30 to15:05
Seminarräume 1 -3
Eclipsecon Europe 2014 Develop OSGi Applications with Apache Karaf