I added a basic installer servlet for Tomcat, and am looking for some
people to try it out and help with the UI (see below).
Installation:
1. copy openejb-tomcat-3.0.0-SNAPSHOT-bin.zip to your Tomcat webapps
directory
2. make sure Tomcat is running
3. visit http://localhost:8080/openejb/installer and click the
install button
4. Assuming you don't get any errors, reboot tomcat
Once complete, simply include EJBs in your war WEB-INF/classes or WEB-
INF/lib/*.jar using either annotated classes or via a META-INF/ejb-
jar.xml file.
Restrictions:
o The installer only runs on Unix. Windows support will require a
tweaked catalina.bat and a work around for Windows file locking.
Cygwin won't work either and will require even more work arounds in
the Unix code to deal with pathing problems.
o There is no uninstaller. Currently, the installer deletes the non-
compliant Tomcat annotations-api.jar so in addition to backing out
the changes, you need to restore this file.
o Annotations in servlets to OpenEJB resources (EJBs,
PersistenceUnits, Topics, Queues, DataSources, etc) don't resolve.
You will have to use global JNDI for the time being.
o There is no security integration. I suggest you don't even try
using secured EJB in Tomcat embedded mode yet.
o Only works with Tomcat 6.
As you will see, the UI is what I like to call stone and chisel, and
would appreciate any help making it look like the rest of OpenEJB.
The UI is rendered in the
org.apache.openejb.tomcat.installer.InstallerServlet class and the
real work is done in the Paths and Installer helper classes. The
page has form that lets the user change the location of the Tomcat
home dir, base dir and server.xml file, but I think we should hide
this items for normal users since the defaults almost always work.
For advanced users we could have a button that reveal those text boxes.
I appreciate any help on this.
Thanks,
-dain