This document provides an overview of Eclipse Libra, a set of tools for OSGi enterprise application development in Eclipse. It describes Libra's scope, the tools included in the initial Juno release such as bundle projects, framework adapters, and the bundle overview. It also briefly demonstrates the bundle dependency view and server console.
Salesforce Miami User Group Event - 1st Quarter 2024
EclipseCON2012 - Enterprise OSGi for Earthlings: Meet Eclipse Libra
1. OSGi for the earthlings:
meet eclipse libra
Naci Dai (@nacidai)
eteration
2. Human OSGi?
nature? Rounded
Pointed
Ears Ears
Fully supported by
USS Enterprise Eclipse PDE / WTP
http://xeobits.com/internet/humor-internet/2-cents-for-
programmers-funny-one/
eteration
3. Five Levels of OSGi (Alex Blewit)
Can’t possibly work Cannot see my class why this uses constraint How do I load a JDBC driver? Bundle Enlightenment
OSGi is written by IBM? ClassNotFoundException? It fails How can I map JNDI Declarative services
I don’t use Eclipse is there Can’t we start the services references to data sources? Remote Services
These classes are the same in order My custom Log4J logger
OSGi is too complex Dynamically update code on
but aren’t? Works on Equinox but not does not work? servers
javax.swing is not there Felix Write a Manifest manually? Tweets about OSGi
Denial
Acceptance
Anger
Bargaining
Depression
hibernate is not working? Let there be a Stack Is there a bundle for Apache
Overflow answer for Beanutils
NoClassDefFoundError ...
•
resolution:=optional, please
just start
eteration
4. JavaEE: If the shoe does not fit
Tightly coupled
hardwired
Not Dynamic
Restarts with every deploy
Isolation
No sharing
Common libraries etc. xflickrx, Flickr Creative Commons
Version conflicts
Hierarchical class-loading
eteration
5. OSGi The New Java Enterprise
The fictional version
Web
JPA Modules
Subsystems, WABs, JPA, Blueprint, Na
ming, …
Transa JNDI
Dynamic Services
ctions
Java EE
Goodies
+ OSGi
= OSGi
Enterprise
Goodies
eteration
6. OSGi Enterprise Applications
OSGi programming model
Proven, standards-based
Dynamic
Modular
Manageable
Ubiquitous
Evolvable
Enterprise Infrastructure
Persistence, Transactions, Distributed, Management, Namin
g, …
A whole new generation of Enterprise Applications
eteration
17. Bundle Repository Browser
(Virgo) Resolves bundles from OBRs
Spring Enterprise Bundle Repository
eteration
18. War Products
• Equinox running in a JavaEE server in bridged mode
• Add your plugins to a Product Definition that exports a
WAR file
• Includes all necessary plugins and deployment files (web.xml)
eteration
19. demo(s)
You can watch the Video tutorials online...
http://www.eclipse.org/libra/documentation/video/
Launchers and Declerative Services
Gemini Web
Http Service and WAR Products
eteration