Coming in Karaf 3.0.0: new enterprise JPA (OpenJPA, Hibernate) and CDI (OpenWebBeans, JBoss Weld) features
Apache Karaf 3.0.0 is now mostly ready (I’m just polishing the documentation).
In previous post, I introduced new enterprise features like JNDI, JDBC, JMS.
As I said, the purpose is to provide a full flexible enterprise ready container, easy to use and extend for the users.
Easy to use means that a simple command will extend your container, with feature that can help you a lot.
JPA
Previous Karaf version already provided a jpa
feature. However, this feature “only” installs the Aries JPA bundles, allowing to expose the EntityManager as an OSGi service. It doesn’t install any JPA engine. It means that, previously, the users had to install all bundles required to have a persistence engine.
As very popular persistence engines, Karaf 3.0.0 provides two ready-to-use features:
karaf@root()> feature:install openjpa
The openjpa
feature brings Apache OpenJPA in Apache Karaf.
karaf@root()> feature:install hibernate
The hibernate
feature brings Hibernate in Apache Karaf.
CDI
Karaf 3.0.0 now refers Pax CDI. It means that you can install pax-cdi* features in Apache Karaf.
However, Pax-CDI doesn’t install any CDI container, it’s up to the users to install all bundles required to have a CDI container.
As very popular CDI containers, Karaf 3.0.0 provides two ready-to-use features:
karaf@root()> feature:repo-add pax-cdikaraf@root()> feature:install openwebbeans
The openwebbeans
feature brings Apache OpenWebBeans CDI container in Apache Karaf.
karaf@root()> feature:repo-add pax-cdikaraf@root()> feature:install weld
The weld
feature brings JBoss Weld CDI container in Apache Karaf.
EJB
As a reminder, waiting to have KarafEE back in Karaf directly (as a ejb
feature, I plan to work on it next week), you can install Apache OpenEJB in Apache Karaf:
karaf@root()> feature:repo-add openejbkaraf@root()> feature:install openejb-corekaraf@root()> feature:install openejb-server
Comments
Post a Comment