Versions Compared

Key

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

...

In addition, WAR files can contain EJB modules and JPA persistence units eliminating the annoying construction of .ear files. Adding EJBs and JPA Persistence beans to your application is as simple as adding the @Stateless, @Stateful, @MessageDriven or @Entity to a class. The packaging is refered to as Collapsed EAR style as the war file, ejb jar, and persistence unit files are merged into one archive and share the same classloader.

...

Assuming you have a normal working Tomcat 6.x or 5.5 installation:

  1. Download openejb.war
  2. Copy openejb.war to ${catalina.base}/webapps/openejb.war (Note: the file must be named openejb.war)
  3. Start Tomcat if it is not already running
  4. (optional) Visit http://localhost:8080/openejb/installer and click the 'install' button

...

See the webapps/ejb-examples/ directory in the openejb-examples zip.

Anchor
problems
problems
Problems?

...

If you want to access the openejb.war from another computer, you will need to either remove the valve, or modify the IP list in the valve declaration.

The easiest way to remove the valve it to simply delete the webapps/openejb/META-INF/context.xml file and and the webapps/openejb.war file while Tomcat is stopped. Warning that Tomcat keeps a copy of all context.xml files under conf/Catalina/localhost/<appname>.xml, so you may need to delete the conf/Catalina/localhost/openejb.xml file as well. The openejb.war file must be removed because some versions of Tomcat will use the context.xml file packed in the openejb.war file regardless of what is in the unpacked directory.

...

If you are having problems with the installation, please send a message to the OpenEJB users mailing list containing any error message(s) and the following information:

...