Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See the examples zip for a dozen embedded testing examples that range from simple @Stateless beans to advanced transaction and security testing.

Collapsed EAR (EJBs in .WARs)

EJB Plugin for Tomcat 6 and 5.5

OpenEJB 3.0 Along the lines of the Tomcat integration where OpenEJB can be plugged into any Tomcat , we've expanded the idea to also allow your EJBs to be plugged into your webapp. We call this innovative feature Collapsed EAR. In this style 100% of your classes, including your EJBs, can be packed into your WEB-INF/classes and WEB-INF/lib directories. The result is that your WAR file becomes a replacement for an EAR. Unlike an EAR, all multi-packaging and multi-classloader requirements are stripped away and collapsed down to one archive and one classloader all your components, EJBs or otherwise, can share.

EJB Plugin for Tomcat 6 and 5.5

OpenEJB 3.0 can be plugged into any Tomcat 6 or Tomcat 5.5 server, adding support for EJBs in Web Apps. War files themselves can contain EJBs and the Servlets can use new JavaEE 5 annotations, XA transactions, JPA, and JMS. Webapps can even support fat java clients connecting over HTTP.

Don't use EJBs?

6 or Tomcat 5.5 server, adding support for EJBs in Web Apps. War files themselves can contain EJBs and the Servlets can use new JavaEE 5 annotations, XA transactions, JPA, and JMS. Webapps can even support fat java clients connecting over HTTP.

Don't use EJBs?

No matter, adding OpenEJB to Tomcat gives Servlets several new Java EE 5 capabilities such as JPA, JAX-WS, JMS, J2EE Connectors, transactions, and more as well as enhancing the injection features of Tomcat 6 to now support injection of JavaEE objects like Topics, Queues, EntityManagers, JMS ConnectionFactories, JavaMail Sessions, as well as simpler data types such as Dates, Classes, URI, URL, List, Map, Set, Properties, and more. In the case of Tomcat 5.5 which doesn't support dependency injection at all, even more is gained.

Collapsed EAR (EJBs in .WARs)

Along the lines of the Tomcat integration where OpenEJB can be plugged into Tomcat, we've expanded the idea to also allow your EJBs to be plugged into your webapp. We call this innovative feature Collapsed EAR. In this style 100% of your classes, including your EJBs, can be packed into your WEB-INF/classes and WEB-INF/lib directories. The result is that your WAR file becomes a replacement for an EAR. Unlike an EAR, all multi-packaging and multi-classloader requirements are stripped away and collapsed down to one archive and one classloader all your components, EJBs or otherwise, can shareNo matter, adding OpenEJB to Tomcat gives Servlets several new Java EE 5 capabilities such as JPA, JAX-WS, JMS, J2EE Connectors, transactions, and more as well as enhancing the injection features of Tomcat 6 to now support injection of JavaEE objects like Topics, Queues, EntityManagers, JMS ConnectionFactories, JavaMail Sessions, as well as simpler data types such as Dates, Classes, URI, URL, List, Map, Set, Properties, and more. In the case of Tomcat 5.5 which doesn't support dependency injection at all, even more is gained.

Runs on OSGi

All OpenEJB 3.0 binaries come with complete OSGi metadata and are usable as a bundle in any OSGi platform. Look for OpenEJB in the upcoming, OSGi-based ServiceMix 4 which is built on Apache Felix.

...