Note |
---|
title | THIS PAGE WILL BE ARCHIVED AND REMOVED |
---|
|
Instructions on OpenEJB Tomcat Installation can be found at Tomcat |
OpenEJB per Tomcat instance
Configure OpenEJB per Tomcat instance requires the following steps:* Copy the war/openejb-loader-1.0-SNAPSHOT.war into the webapps dir of a running Tomcat install
Code Block |
---|
|
$ cd $OPENEJB_HOME
$ cp war/openejb-loader-1.0-SNAPSHOT.war $CATALINA_HOME/webapps
|
or
Code Block |
---|
|
c:/> cd %OPENEJB_HOME%
%OPENEJB_HOME%> cp war/openejb-loader-1.0-SNAPSHOT.war %CATALINA_HOME%/webapps
|
- Update the openejb.home init param (inside the WEB-INF/web.xml file) to point to where OpenEJB was installed.
Code Block |
---|
|
$ cd $CATALINA_HOME/webapps
$ jar -xvf openejb-loader-1.0-SNAPSHOT.war WEB-INF/web.xml
...edit WEB-INF/web.xml...
$ jar -uvf openejb-loader-1.0-SNAPSHOT.war WEB-INF/web.xml
$ rm -rf WEB-INF
|
or
Code Block |
---|
|
c:/> cd %CATALINA_HOME%/webapps
%CATALINA_HOME%/webapps> jar -xvf openejb-loader-1.0-SNAPSHOT.war WEB-INF/web.xml
...edit WEB-INF/web.xml...
%CATALINA_HOME%/webapps> jar -uvf openejb-loader-1.0-SNAPSHOT.war WEB-INF/web.xml
%CATALINA_HOME%/webapps> rmdir /S /Q WEB-INF
|
- Create the temp directory under Tomcat's home directory
Warning |
---|
This is because the beans that's been successfully validated are deployed. During validation OpenEJB creates temporary files under the temp.dir directory, which is overriden by Tomcat to its temp directory. Unfortunatelly, the directory doesn't exist and needs to be created manually. |
- Deploy your webapps that are using the beans deployed onto OpenEJB
- Start up Tomcat and have fun with the EJBs