osgi in a nutshell

15
OSGi in a nutshell Debunking the myth of OSGi’s complexity Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Upload: pierre-antoine-gregoire

Post on 13-May-2015

1.096 views

Category:

Technology


1 download

DESCRIPTION

These are the introduction slides for a swift introduction to OSGi, followed by a demo, soon made available on http://www.parleys.com/.

TRANSCRIPT

Page 1: OSGi In A Nutshell

OSGi in a nutshell Debunking the myth of OSGi’s complexity

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 2: OSGi In A Nutshell

Event

!   http://www.yajug.lu

!   March 08 2010 Eclipse, OSGi and Spring dmServer (Project Eclipse Virgo)

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 3: OSGi In A Nutshell

Speaker

!   Pierre-Antoine Grégoire

!   I.T.Architect at

!   Occasional committer in open source projects

!   Dislikes buzzwords (SOA, EDA…), likes to conceptualize and build architectures and to promote Agile practices

!   Thinks having fun and working seriously (both at the same time) should be mandatory!

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 4: OSGi In A Nutshell

In a nutshell?

OSGi

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 5: OSGi In A Nutshell

Modularity == Flexibility … with limits

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 6: OSGi In A Nutshell

Standard Java Modularity

!   Classloading issues

!   Dependency hell

!   Dumb Lifecycles

!   …etc

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 7: OSGi In A Nutshell

OSGi ==

Real modularity in the belly of

Java, Now!

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 8: OSGi In A Nutshell

OSGi Module ==

Bundle ==

Jar with META-INF/Manifest.mf

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 9: OSGi In A Nutshell

Multiple bundles? More small pieces? Easier to manage?

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 10: OSGi In A Nutshell

OSGi Runtime ==

Runtime for Bundles ==

Bundle Lifecycle and Dependency Manager + System Services (pre-

deployed bundles) Copyright © Pierre-Antoine Grégoire License Creative

Commons 2.0

Page 11: OSGi In A Nutshell

Bundle ==

Service Oriented Component

== Service Consumer

and/or Service Provider

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 12: OSGi In A Nutshell

OSGi Runtime ==

Services Registry and Services Lifecycle Management

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 13: OSGi In A Nutshell

And now, for something completely different…

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 14: OSGi In A Nutshell

The…. Demo!

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0

Page 15: OSGi In A Nutshell

Creative Commons Attributions

!   http://www.flickr.com/photos/elixir/193006996/

!   http://www.flickr.com/photos/clonedmilkmen/3604999084/

!   http://www.flickr.com/photos/starycat/461380473/

!   http://www.flickr.com/photos/redux/4298421692/

!   http://www.flickr.com/photos/lostcarpark/250616113/

!   http://media.paperblog.fr/i/68/688035/lego-lego-L-2.jpeg

!   http://www.muhlenberg.edu/cultural/graver/Collections/WetlandPlants/LarchTree.JPG

Copyright © Pierre-Antoine Grégoire License Creative Commons 2.0