Developing modularapplications with Java EE 6 and       Enterprise OSGi    ...and WebSphere V8.5 Liberty Profile           ...
About me•   Java EE, OSGi and functional programming (Clojure, F# and Scala)    enthusiast•   Founder and leader of Warsza...
OSGi Blueprint                 • Chapter 121                 • Blueprint Container                   Specification Version ...
OSGi Blueprint defines a dependency   injection framework, specifically for OSGi bundles,    that understands the unique dyn...
OSGi Blueprint                 @JacekLaskowski
OSGi Blueprint•   Dependency injection framework for OSGi bundles                                                      @Ja...
OSGi Blueprint•   Dependency injection framework for OSGi bundles•   Programming model                                    ...
OSGi Blueprint•   Dependency injection framework for OSGi bundles•   Programming model    •   XML to define constituents   ...
OSGi Blueprint•   Dependency injection framework for OSGi bundles•   Programming model    •   XML to define constituents•  ...
OSGi Blueprint•   Dependency injection framework for OSGi bundles•   Programming model    •   XML to define constituents•  ...
Blueprint bundle          A bundle is a Blueprint bundle if  it contains one or more blueprint XML definition              ...
Problems (to be?) solved                           @JacekLaskowski
Problems (to be?) solvedHow canyou know the type  exists?(visibility)                           @JacekLaskowski
Problems (to be?) solved How can you know  the type   exists? (visibility)   What about the  available methods?(versioning...
Problems (to be?) solved How can you know  the type   exists? (visibility)                How are                         ...
@JacekLaskowski
Demo Time        @JacekLaskowski
Open questions                 @JacekLaskowski
Open questions•   Difference between Maven and OSGi Blueprint                                                  @JacekLasko...
Open questions•   Difference between Maven and OSGi Blueprint    •   build-time vs runtime                                ...
Open questions•   Difference between Maven and OSGi Blueprint    •   build-time vs runtime    •   Maven brings the libs to...
Open questions•   Difference between Maven and OSGi Blueprint    •   build-time vs runtime    •   Maven brings the libs to...
Thanks for listening   Questions?   @JacekLaskowski    http://blog.japila.pl
Upcoming SlideShare
Loading in …5
×

Developing modular applications with Java EE 6 and Enterprise OSGi + WebSphere V8.5 Liberty Profile

1,302 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Developing modular applications with Java EE 6 and Enterprise OSGi + WebSphere V8.5 Liberty Profile

  1. 1. Developing modularapplications with Java EE 6 and Enterprise OSGi ...and WebSphere V8.5 Liberty Profile Jacek Laskowski jacek@japila.pl @JacekLaskowski wersja 1.0, Riga, Latvia, 29.11.2012
  2. 2. About me• Java EE, OSGi and functional programming (Clojure, F# and Scala) enthusiast• Founder and leader of Warszawa Java User Group• Javarsovia, Confitura, warsjawa conference team member• Blogger of http://JacekLaskowski.pl• Blogger of http://blog.japila.pl• @JacekLaskowski• Member of Apache Software Foundation• Apache OpenEJB and TomEE committer• Member of IBM Academy of Technology• IBMer in World-wide WebSphere Competitive Migration Team
  3. 3. OSGi Blueprint • Chapter 121 • Blueprint Container Specification Version 1.0 @JacekLaskowski
  4. 4. OSGi Blueprint defines a dependency injection framework, specifically for OSGi bundles, that understands the unique dynamic nature of services.Bundles in this programming model contain a number of XML definition resources which are used by the Blueprint Container to wire the application together and start it when the bundle is active.OSGi Service Platform Release 4,Version 4.2 page 193 @JacekLaskowski
  5. 5. OSGi Blueprint @JacekLaskowski
  6. 6. OSGi Blueprint• Dependency injection framework for OSGi bundles @JacekLaskowski
  7. 7. OSGi Blueprint• Dependency injection framework for OSGi bundles• Programming model @JacekLaskowski
  8. 8. OSGi Blueprint• Dependency injection framework for OSGi bundles• Programming model • XML to define constituents @JacekLaskowski
  9. 9. OSGi Blueprint• Dependency injection framework for OSGi bundles• Programming model • XML to define constituents• Enterprise OSGi == OSGi Blueprint @JacekLaskowski
  10. 10. OSGi Blueprint• Dependency injection framework for OSGi bundles• Programming model • XML to define constituents• Enterprise OSGi == OSGi Blueprint • For this presentation only @JacekLaskowski
  11. 11. Blueprint bundle A bundle is a Blueprint bundle if it contains one or more blueprint XML definition resources in the OSGI-INF/blueprint directory or it contains the Bundle-Blueprint manifest header referring to existing resources. @JacekLaskowski
  12. 12. Problems (to be?) solved @JacekLaskowski
  13. 13. Problems (to be?) solvedHow canyou know the type exists?(visibility) @JacekLaskowski
  14. 14. Problems (to be?) solved How can you know the type exists? (visibility) What about the available methods?(versioning) @JacekLaskowski
  15. 15. Problems (to be?) solved How can you know the type exists? (visibility) How are the parts integrated? What about the available methods?(versioning) @JacekLaskowski
  16. 16. @JacekLaskowski
  17. 17. Demo Time @JacekLaskowski
  18. 18. Open questions @JacekLaskowski
  19. 19. Open questions• Difference between Maven and OSGi Blueprint @JacekLaskowski
  20. 20. Open questions• Difference between Maven and OSGi Blueprint • build-time vs runtime @JacekLaskowski
  21. 21. Open questions• Difference between Maven and OSGi Blueprint • build-time vs runtime • Maven brings the libs to the app and bundles them @JacekLaskowski
  22. 22. Open questions• Difference between Maven and OSGi Blueprint • build-time vs runtime • Maven brings the libs to the app and bundles them • Do you need to include the libs inside the app if they’re available at runtime? @JacekLaskowski
  23. 23. Thanks for listening Questions? @JacekLaskowski http://blog.japila.pl

×