the horoscope of osgi: meet eclipse libra, virgo and gemini (javaone 2013)

29
The Horoscope of OSGi meet Eclipse Libra, Virgo and Gemini Murat Yener, @yenerm Wednesday, October 9, 13

Upload: murat-yener

Post on 10-May-2015

580 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

The Horoscope of OSGimeet Eclipse Libra, Virgo and Gemini

Murat Yener, @yenerm

Wednesday, October 9, 13

Page 2: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

who (the hell) am I?!?

Java, Flex, GWT, iOS, Android developer

Principle Mentor at Eteration

Eclipse Committer

GDG (GTUG) Istanbul Organizer

Conference Speaker

Wednesday, October 9, 13

Page 3: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

who (the hell) am I?!?

Java, Flex, GWT, iOS, Android developer

Principle Mentor at Eteration

Eclipse Committer

GDG (GTUG) Istanbul Organizer

Conference Speaker

Wednesday, October 9, 13

Page 4: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

who (the hell) am I?!?

Java, Flex, GWT, iOS, Android developer

Principle Mentor at Eteration

Eclipse Committer

GDG (GTUG) Istanbul Organizer

Conference Speaker

Mobile App Developer at Intel

Wednesday, October 9, 13

Page 5: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

what (the hell) is this talk about?!?

luckily no horoscopes!

OSGi for the earthlings: Meet Eclipse Libra

EclipseCon 2010/2011, JavaOne 2011/2012

Eclipse Gemini

Eclipse Virgo

Wednesday, October 9, 13

Page 6: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

so what (the hell) is OSGi?!?

architecture for developing and deploying modular apps

build using OSGi apis

deploy to an OSGi container

a dynamic modular runtime for Java developers

Wednesday, October 9, 13

Page 8: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

tools

Ant tools: bnd, Bundlor

Eclipse plugins: bnd, Bndtools, Bundlor, Pax, Sigil, Concierge

Rational

Spring Tools (Eclipse Virgo)

back to 2009

later...

Wednesday, October 9, 13

Page 9: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

problems!!

development complexity, no more plain java (bundles, activators, manifests...)

different tools, adds its own behavior and complexity (ant, maven, packaging..)

different containers, different packaging and configuration

Wednesday, October 9, 13

Page 10: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

the (OSGi) Developer

need the learn the OSGi way, well it is a new platform...

need to learn each tool

need to know each container

pointed ears

science officer

half human - half vulcan

trying to understand

human nature

rounded ears

developer

java & OSGi

trying to understand OSGi

Wednesday, October 9, 13

Page 11: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

there used to be a similar problem!!

Building Java Web/J2EE apps!

Different vendors

Different servers

Different configurations

Different tools

Did old Java Web/J2EE apps were really portable?

Wednesday, October 9, 13

Page 12: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

So what happened?!?

Eclipse Web Tools Platform

abstraction of runtime from the project

adapters for the runtimes to integrate the IDE

target platforms for the runtimes

Wednesday, October 9, 13

Page 13: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

So what happened?!?

Eclipse Web Tools Platform

abstraction of runtime from the project

adapters for the runtimes to integrate the IDE

target platforms for the runtimes

really need

to reinven

t

the wheel?

Wednesday, October 9, 13

Page 14: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

road to Libra... OSamI

sorry, not a japanese beer

targets social needs: energy efficiency, remote health, smart home, mobility..

based on OSGi

first results: Green building (grenoble, thales, bull), Smart Home (VTT), Mobile (Siemens), Embedded (ProSyst)

Wednesday, October 9, 13

Page 15: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

OSamI Tools

OSamI tools for OSGi developers

abstraction layer between bundles and containers

built on server adapters (well OSGi runtime adapters)

demo at EclipseCon 2010

moving to Eclipse repo... (2011)

Wednesday, October 9, 13

Page 16: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

PDE to OSamI

Extend PDE

Not only Eclipse plugins (PDE)

Support for multi OSGi frameworks

Runtime independant projects

Runtime instances

Wednesday, October 9, 13

Page 17: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Eclipse Libra

tools for creation of deployable artifacts for application servers implementing the OSGi Enterprise specification, (Web Application Bundles)

tools for converting Java EE deployable artifacts to OSGi Enterprise deployable artifacts (Dynamic Web projects to a Web Application Bundle projects)

Wednesday, October 9, 13

Page 18: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Eclipse Libra (cont.)

tools for editing and validation of the metadata of OSGi Enterprise artifacts, (extension of the PDE Manifest Editor for editing manifest headers)

OSGi server adapters, providing basic implementation of configuring an OSGi-based application server, starting it and deploying OSGi enterprise artifacts.

Wednesday, October 9, 13

Page 19: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Libra in a Nutshelladapters for OSGi containers

no runtime info in bundles

dynamic packaging, deploy, run, debug

easy to develop new adapters

war products (packaging OSGi container with bundles as a war file)

gemini profile (OSGi web profile)

Wednesday, October 9, 13

Page 20: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

demosIf I fail... go watch it online...

http://www.eclipse.org/libra/documentation/video/

Wednesday, October 9, 13

Page 21: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Eclipse Gemini

Modular implementations of JavaEE

each project can be used on its own, combination with others or with any OSGi bundle.

Wednesday, October 9, 13

Page 22: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Gemini Blueprint

Reference implementation of OSGi 5.0 Enterprise spec

Originally called Spring DM

Wednesday, October 9, 13

Page 23: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Gemini Management

JMX management model from OSGi 4.2 spec

Administration of OSGi runtime, bundles, services via JMX

Wednesday, October 9, 13

Page 24: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Gemini DBAccess and JPA

Modularized OSGi distribution of JDBC drivers

Drivers can be packaged seperately from bundles

JPA on OSGi

Wednesday, October 9, 13

Page 25: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Gemini Web

Reference implementation for running enterprise web applications within an OSGi framework.

Just create a Dynamic Web project and add OSGi web profile.

Wednesday, October 9, 13

Page 26: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

demo

Wednesday, October 9, 13

Page 27: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Eclipse Virgo

OSGi based, Java Application Server (originally Spring DM Server)

based on Equinox and Tomcat servlet container

supports: OSGi bundles, plain java web apps, shared lib wars, shared services wars

Wednesday, October 9, 13

Page 28: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

Virgo FeaturesWeb admin console

Gogo shell: command line via ssh or shell

Plans: scopes, lifecycles

Provisioning: dependency resolution on local or remote repos

Web container: for plain wars

Spring3, Hot deploy, Logging...

Wednesday, October 9, 13

Page 29: The Horoscope of OSGi: Meet Eclipse Libra, Virgo and Gemini (JavaOne 2013)

</slides>Mobile Java with MGWT: Still “Write Once, Run Everywhere” [BOF2042]

Monday 7:30pm, Hilton Continental Ballroom 5

The Zodiac of OSGi: Meet Eclipse Libra, Virgo, and Gemini [CON1749]Tuesday 8:30am, Hilton Continental Ballroom 4

Eclipse Orion: The IDE in the Clouds [CON4107], [BOF3999]Tuesday 5:30pm, Hilton Continental Ballroom 4

Wednesday 3:00pm, Hilton Continental Ballroom 7/8/9

[email protected]@yenerm

devchronicles.com

Wednesday, October 9, 13