Upload
florent-benoit
View
557
Download
0
Embed Size (px)
DESCRIPTION
How to use JOnAS for a PaaS platform
Citation preview
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
JOnAS Addons
A new packaging for SaaS applications
Florent Benoit, BULL [ @florentbenoit ]
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
JOnAS Today
● JOnAS : Java EE 5 & Java EE 6 features● Two assemblies :
– Full (211 MB)
– µJOnAS (10 MB)
● Difficult to have custom assembliesfor users (profiles)● Camel profile, Java EE web profile
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
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.
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.
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.
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.
JOnAS Addon resolver
● Addon won't be deployed if required dependencies are not available
→ Ability to download these dependencies
AddonResolver
Resolved / Missing dependencies
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
SaaS and AddonsAddon example which provides :● Application / OSGi bundle● JDBC datasources
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
EAR and JDBC SaaS Addon
<jonas-addon> <name>EarAndJDBCConf</name>
<description>EAR And Conf Addon</description>
<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>
METADATA
META-INF/jonas-addon.xmldeploy/javaee5-earsample.eardeploy/jdbc-ds.xml
File content :
OW2Con 2011, November 23-24, Orange Labs, Paris.
www.ow2.org.
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.
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