oemware.core.web
Class TomcatService

java.lang.Object
  extended by oemware.core.web.TomcatService
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationListener

public final class TomcatService
extends java.lang.Object
implements org.springframework.context.ApplicationListener

The embedded tomcat service. This is a servlet engine/web server in a component.

Version:
$Id: TomcatService.java 34 2008-07-20 19:40:11Z oemware $

Constructor Summary
TomcatService(ServiceConf pServiceConf, java.lang.String pServiceName, java.lang.String pHostname, java.lang.String pEngineName, java.lang.String pAppName, java.lang.String pEmbeddedName, java.lang.String pWebContextPath)
          Create a new tomcat service object.
 
Method Summary
 void onApplicationEvent(org.springframework.context.ApplicationEvent pEvent)
          The stpring application event listener interface.
 void shutdown()
          Stop tomcat.
 void startup()
          Start tomcat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatService

public TomcatService(ServiceConf pServiceConf,
                     java.lang.String pServiceName,
                     java.lang.String pHostname,
                     java.lang.String pEngineName,
                     java.lang.String pAppName,
                     java.lang.String pEmbeddedName,
                     java.lang.String pWebContextPath)
              throws ServiceException
Create a new tomcat service object.

Parameters:
pServiceConf - The service conf object.
pServiceName - The service name.
pHostname - The hostname.
pEngineName - The engine name.
pAppName - The application name.
pEmbeddedName - The name of the embedded tomcat service.
pWebContextPath - The location on the url e.g. /foo.
Throws:
ServiceException
Method Detail

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent pEvent)
The stpring application event listener interface.

Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener
Parameters:
pEvent - The context event.

startup

public void startup()
             throws ServiceException
Start tomcat.

Throws:
ServiceException

shutdown

public void shutdown()
              throws ServiceException
Stop tomcat.

Throws:
ServiceException


Copyright © 2008 Deft Labs - Released under LGPL, Version 3.0