JOnAS Addons and the deployment for PaaS and SaaS applications
1. JOnAS Addons
Florent Benoit, BULL [ @florentbenoit ]
A new packaging for SaaS applications
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
2. JOnAS Today
● JOnAS : Java EE 5 & Java EE 6 features
● Two assemblies :
– Full (211 MB)
– µJOnAS (10 MB)
● Difficult to have custom assemblies
for users (profiles)
● Camel profile, Java EE web profile
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
3. User needs : Modular assemblies
● Assemblies with the right size
● Easy to download/build custom assemblies
FULL CUSTOM
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
4. User needs : Deploy more than only
Java EE applications
● Application configuration files
● « Connectors »
– Allow to create new HTTP/AJP/...
connectors
– JDBC connections
– Mail factories
– JMS topics, queues, etc.
● Shell scripts that can be added to the µJOnAS
platform
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
5. Addon : A new deployable
● New archive that can embed many “deployables”
● Java EE applications (WAR/EAR/EJB-JAR/RAR)
● OSGi bundles
● Configuration files
● Deployment plans : ordered deployment and links to m2
repository for downloading archives
● HTTP Connectors
● ...
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
6. Addon Metadata
● Metadata for the JOnAS addons
● META-INF/jonas-addon.xml
● Defines name of the addon
● Defines Required JOnAS version range
● [5.3.0,5.4.0)
● Provides / Requirement
● Properties (for a JOnAS service)
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
7. JOnAS Addon resolver
Addon
Resolver
Resolved / Missing dependencies
● Addon won't be deployed if required
dependencies are not available
→ Ability to download these dependencies
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
8. SaaS and Addons
Addon example which provides :
● Application / OSGi bundle
● JDBC datasources
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
9. EAR and JDBC SaaS Addon
METADATA
File content :
<jonas-addon>
<name>EarAndJDBCConf</name> META-INF/jonas-addon.xml
deploy/javaee5-earsample.ear
<description>EAR And Conf Addon</description> deploy/jdbc-ds.xml
<author>The JOnAS Team</author>
<licence>LGPL</licence>
<jonas-version>[5.3.0-M6-SNAPSHOT]</jonas-version>
<autostart>true</autostart>
<jvm-version>[1.5,1.7]</jvm-version>
<!--provides and requirements property for the resolver-->
<provides/>
<requirements/>
</jonas-addon>
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
10. Demo
● Start a µJOnAS assembly
● Add addon in the current JOnAS
● Test features provided by the addon
● Remove addon
● Restart JOnAS
● JOnAS with application + JDBC configuration
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
11. JOnAS Addons Roadmap
● JOnAS 5.3 will be Addons based
→ Several profiles available for download
– Addons can be tested since JOnAS 5.3 M5
– Final version H1 2012
● µJOnAS will be reduced
● More lightweight
● Work in progress on JOnAS and PaaS
● Following work of Java EE 7
● 4CaaSt european project
● Compatible One project
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.