JavaOne 2012, OSGi for the Earthlings: Meet Eclipse Libra

915 views
751 views

Published on

Eclipse libra

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
915
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

JavaOne 2012, OSGi for the Earthlings: Meet Eclipse Libra

  1. 1. OSGi for the Earthlings: Meet Eclipse Libra Murat Yener (@yenerm)Wednesday, October 3, 12
  2. 2. OSGi for the Earthlings: Meet Eclipse Libra Murat Yener (@yenerm)Wednesday, October 3, 12
  3. 3. Who am I? • Java/JavaEE, OSGi, GWT, Flex, Android, iOS, Node.js... simply Code Geek! • GDG/GTUG Istanbul Lead • Eclipse Committer • Conference SpeakerWednesday, October 3, 12
  4. 4. OSGi vs Developers Human rounded ears OSGi?!? pointed ears nature? Fully supported by USS Enterprise Looking for IDE supportWednesday, October 3, 12
  5. 5. OSGi: The good(s)... •Architecture for developing and deploying modular apps •Build using OSGi APIs •Deploy to an OSGi ContainerWednesday, October 3, 12
  6. 6. OSGi Containers? •Runtime for the OSGi Apps •from Symbian to Enterprise •equinox, felix, knoplerfish...Wednesday, October 3, 12
  7. 7. JavaEE: If the shoe does not fit •Tightly coupled -- hardwired •Not Dynamic -- restarts with every deploy •Isolation -- no sharing, common libraries, version conflicts, hierarchical class loadingWednesday, October 3, 12
  8. 8. Enterprise OSGi •OSGi programming model: proven, standarts-based, dynamic, modular, manageable, ubiquitous, evolvable •Enterprise Infrastructure: persistence, transactions, distributed, management, namingWednesday, October 3, 12
  9. 9. Enterprise OSGiWednesday, October 3, 12
  10. 10. OSGi Tools: the bad.. •Ant tools: bnd, bundlor •Too many/Not enough tools •Eclipse tools: bnd, bndtools, bundlor, pax, •Different philosophies sigil, concierge (OSGi Transperent, Generate Manifests) •Rational •OSGi Frameworks are •Spring tools tricky (launching, installing...)Wednesday, October 3, 12
  11. 11. OSGi: the ugly... •development complexity, no more plain java (bundles, activators, manifests) •each tool adds its own behaivour and complexity •different containers, different packaging and configurationWednesday, October 3, 12
  12. 12. Five Levels of OSGi (Alex Blewit) can’t possibly work DENIAL written by IBM, right? eclipse use OSGi, I don’t use Eclipse OSGi is too complex if you can start up the services in this order ANGER why does this work in equinox but not felix please let there be a StackOverflow answer why can’t this bundles see this class BARGAINING why am I getting ClassNotFound Ex these two same classes are not the same why doesn’t hibernate work how do I load a JDBC driver DEPRESSION why doen’t my custom Log4J logger work why do I have to write a Manifest manually sudden dawn of understanding of bundles see how services can be connected with DS ACCEPTANCE remote services to other Systems dynamically upgrade running code evangelise & tweet & give keynote on OSGiWednesday, October 3, 12
  13. 13. Developer: the poor... •need to learn the OSGi way •need to learn tools •need to learn containersWednesday, October 3, 12
  14. 14. Developer: the poor... •need to learn the OSGi way •need to learn tools •need to learn containersWednesday, October 3, 12
  15. 15. Developer: the poor... •need to learn the OSGi way •need to learn tools •need to learn containers wait!!!Wednesday, October 3, 12
  16. 16. Building Web/EE Apps •Different servers •Different configurations •Abstraction of DevelopmentWednesday, October 3, 12
  17. 17. Building Web/EE Apps •Different servers •Different configurations •Abstraction of Development do we really need to invent a new wheel??Wednesday, October 3, 12
  18. 18. Building Web/EE Apps •Different servers •Different configurations •Abstraction of Development do we really need to invent a new wheel??Wednesday, October 3, 12
  19. 19. soo what if... + +Wednesday, October 3, 12
  20. 20. Earthlings, meet Eclipse Libra WTP PDE ToolsWednesday, October 3, 12
  21. 21. Libra Tools Scope in out aries jetty virgo websphere (liberty) felix equinox gemini uJonas frameworks eclipselink weblogic tomcat standarts blueprint subsystems & PARs technologies JavaEE OSGi blueprint JPA OBR WEB EABs declerative servicesWednesday, October 3, 12
  22. 22. What is in JUNO Release... • OSGi Bundle Facet • WAR Products • OSGi Framework Adapters • adapted from WTP server adapters • launch configs • supports Felix/equinox/knoplerfish • Gemini/Apache Aries • Virgo tools not yet portedWednesday, October 3, 12
  23. 23. also... •Framework Editor •refactoring from virgo tools •server console •bundle overview •dependency graphs •Provisional: bundle projects and Manifest EditorWednesday, October 3, 12
  24. 24. Bundle Projects •OSGi Bundle Facet •PDE / WTP project types •versioned •Tools can add more behaviourWednesday, October 3, 12
  25. 25. Framework Adapters •Vanilla OSGi Frameworks •eclipse equinox, apache felix, knoplerfish •Eclipse RT (with above) •gemini, virgo, eclipselink, jetty... •Apache Aries (with above)Wednesday, October 3, 12
  26. 26. Bundle Overview •Part of framework editor, list and control all bundlesWednesday, October 3, 12
  27. 27. Bundle Dependency View Graphical representation of bundle dependencies with drill downsWednesday, October 3, 12
  28. 28. Server Console Similar to console shellsWednesday, October 3, 12
  29. 29. Bundle Repository Browser (Virgo) Resolves bundles from OBRs Spring Enterprise Bundle RepositoryWednesday, October 3, 12
  30. 30. WAR Products •Equinox running in JavaEE server in bridget mode •Simply add your plugins to a product definition that exports a WAR file (includes all necessary files!)Wednesday, October 3, 12
  31. 31. demos •Available online http://www.eclipse.org/libra/documentation/video/ •Launchers and Declerative Services •Gemini Web •Http Service and WAR productsWednesday, October 3, 12
  32. 32. QnA http://eclipse.org/libra Murat Yener murat.yener@eteration.com @yenerm blogs.eteration.com / devchronicles.comWednesday, October 3, 12

×