org.jboss.webservice
Class ServiceDeployerJSE

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.webservice.ServiceDeployer (src) 
              extended byorg.jboss.webservice.ServiceDeployerJSE
All Implemented Interfaces:
java.util.EventListener, MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , NotificationListener (src) , Service (src) , ServiceMBean (src)

public class ServiceDeployerJSE
extends ServiceDeployer (src)

A deployer service that manages WS4EE compliant Web-Services for WAR

Since:
15-April-2004

Nested Class Summary
 
Nested classes inherited from class org.jboss.webservice.ServiceDeployer (src)
ServiceDeployer.ServiceLocationResolver (src)
 
Field Summary
 
Fields inherited from class org.jboss.webservice.ServiceDeployer (src)
INIT_PARAM_SERVICE_ENDPOINT_IMPL, INIT_PARAM_WEBSERVICE_ID, WEBSERVICE_CONTEXT_ROOT, webservicesMap
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
ServiceDeployerJSE()
           
 
Method Summary
protected  void createWebservice(DeploymentInfo (src)  di)
          Is called when the parent deployer sends the CREATE_NOTIFICATION.
protected  java.lang.String getServiceEndpointServletName()
          Override to return the name of the service endpoint servlet
protected  java.net.URL getWebservicesDescriptor(DeploymentInfo (src)  di)
          Get the resource name of the webservices.xml descriptor.
 void setWARDeployer(ObjectName (src)  deployerName)
          Set the service name of the WAR deployer
protected  void startService()
          Register this service as NotificationListener to the WARDeployer
protected  void stopService()
          Unregister this service as NotificationListener from the WARDeployer
 
Methods inherited from class org.jboss.webservice.ServiceDeployer (src)
deployWebservices, destroyWebservice, handleNotification, handleShutdownException, handleStartupException, initWebservice, modifyServletConfig, parseWebservicesXML, registerNotificationListener, startWebservice, stopWebservice, undeployWebservices, unregisterNotificationListener
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDeployerJSE

public ServiceDeployerJSE()
Method Detail

setWARDeployer

public void setWARDeployer(ObjectName (src)  deployerName)
Set the service name of the WAR deployer


startService

protected void startService()
                     throws java.lang.Exception
Register this service as NotificationListener to the WARDeployer

Overrides:
startService in class ServiceDeployer (src)
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Unregister this service as NotificationListener from the WARDeployer

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

getWebservicesDescriptor

protected java.net.URL getWebservicesDescriptor(DeploymentInfo (src)  di)
Get the resource name of the webservices.xml descriptor.

Specified by:
getWebservicesDescriptor in class ServiceDeployer (src)

createWebservice

protected void createWebservice(DeploymentInfo (src)  di)
                         throws DeploymentException (src) 
Is called when the parent deployer sends the CREATE_NOTIFICATION. This implemantation modifies the servlet entries in web.xml

Overrides:
createWebservice in class ServiceDeployer (src)
Throws:
DeploymentException (src)

getServiceEndpointServletName

protected java.lang.String getServiceEndpointServletName()
Override to return the name of the service endpoint servlet

Specified by:
getServiceEndpointServletName in class ServiceDeployer (src)