OpenEJB     OpenJMS     OpenORB     Castor     Tyrex     
 

Main
    Welcome!
    Download
    Mailing Lists
    The Team
Users
    Quickstart
    Hello World!
    CMP Example
    CMP Guide
    Deploy
    Startup
    Validation
    Configuration
    Support
    Request Feature
    FAQ
Servers
    Local Server
    Remote Server
    Tomcat
Integrators
    Why OpenEJB
    Overview
    Design
    Specification
    Presentation
Developers
    Custom Services
    Release Plan
    Source Code
    SourceForge


SourceForge Logo
  



About the OpenEJB Tomcat Integration


Plug-in, not a bundle
Advantages for you
On the technical side
The process of embedding

Plug-in, not a bundle

Typically ejb servers have embedded Tomcat into their platforms, requiring you to switch platforms and use the Tomcat version they ship. We've taken the opposite approach and have created an integration that embeds OpenEJB into your existing Tomcat setup. This gives you several advantages.

Advantages for you

You can keep your working Tomcat installation.
No need to port webapps over to a platform where Tomcat has been embedded.
You can use whatever version of Tomcat you want.
Upgrade to different Tomcat versions whenever you feel like it.
No need to convince anyone to switch platforms to use EJB.
No change to your Tomcat install.
You can plug-in OpenEJB and unplug it without modifying your Tomcat configs.

On the technical side

The integration consists of a servlet in this webapp that is configured to load on startup. When loaded, it locates the OpenEJB installation via the openejb.home init-param you set in the web.xml file. Once it finds the OpenEJB installation, it walks up the classloader tree to the Tomcat common classloader and loads OpenEJB and your EJBs into the VM. After all the classes are loaded, OpenEJB is automatically started in Tomcat's VM.

When the entire process completes, you will magically have access to all you EJB class definitions from your webapp. No need to put them in the WEB-INF directories at all!. All your servlets and JSPs will have fast, network-free access to all the EJBs in OpenEJB.

The process of embedding

This is just one of the ways OpenEJB can be embedded. OpenEJB can be embedded into any VM! Read here for more details.

 
     
   
   
 


Java, EJB, JDBC, JNDI, JTA, Sun, Sun Microsystems are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and in other countries. XML, XML Schema, XSLT and related standards are trademarks or registered trademarks of MIT, INRIA, Keio or others, and a product of the World Wide Web Consortium. All other product names mentioned herein are trademarks of their respective owners.