org.apache.openejb.tomcat.loader
Class OpenEJBListener

java.lang.Object
  extended by org.apache.openejb.tomcat.loader.OpenEJBListener
All Implemented Interfaces:
org.apache.catalina.LifecycleListener

public class OpenEJBListener
extends java.lang.Object
implements org.apache.catalina.LifecycleListener

The sole purpose of this class is to call the TomcatEmbedder.embed(java.util.Properties, java.lang.ClassLoader) method This is an alternate way to load the Tomcat integration This approach is mutually exclussive to the LoaderServlet This class does nothing more than scrape around in Tomcat and look for the openejb.war so it can call the embedder This class can be installed in the Tomcat server.xml as an alternate way to bootstrap OpenEJB into Tomcat. The benefit of this is that OpenEJB is guaranteed to start before all webapps.


Constructor Summary
OpenEJBListener()
           
 
Method Summary
static boolean isListenerInstalled()
           
 void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenEJBListener

public OpenEJBListener()
Method Detail

isListenerInstalled

public static boolean isListenerInstalled()

lifecycleEvent

public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
Specified by:
lifecycleEvent in interface org.apache.catalina.LifecycleListener


Copyright © 1999-2010 The Apache OpenEJB development community. All Rights Reserved.