org.apache.tomee.loader
Class OpenEJBListener

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

public class OpenEJBListener
extends 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 tomee.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 void extract(File src, File dest)
           
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

extract

public static void extract(File src,
                           File dest)
                    throws IOException
Throws:
IOException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.