org.jboss.webservice
Class ServiceDeployerEJB

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.ServiceDeployerEJB
All Implemented Interfaces:
java.util.EventListener, MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , NotificationListener (src) , Service (src) , ServiceMBean (src)

public class ServiceDeployerEJB
extends ServiceDeployer (src)

A deployer service that manages WS4EE compliant Web-Services for EJB Endpoints

Since:
15-April-2004

Nested Class Summary
 
Nested classes inherited from class org.jboss.webservice.ServiceDeployer (src)
ServiceDeployer.ServiceLocationResolver (src)
 
Field Summary
static java.lang.String EJB_ENDPOINT_WEBAPP_URL
           
 
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
ServiceDeployerEJB()
           
 
Method Summary
protected  void deployWebservices(DeploymentInfo (src)  di, WebservicesMetaData (src)  webservices)
          Deploy the webservices using the AxisService MBean
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 setEJBDeployer(ObjectName (src)  deployerName)
          Set the service name of the EJB deployer
 void setMainDeployer(ObjectName (src)  deployerName)
          Set the service name of the Main deployer
protected  void startService()
          Register this service as NotificationListener to the EJBDeployer
protected  void stopService()
          Unregister this service as NotificationListener from the EJBDeployer
protected  void undeployWebservices(DeploymentInfo (src)  di, WebservicesMetaData (src)  webservices)
          Undeploy the webservices using the AxisService MBean
 
Methods inherited from class org.jboss.webservice.ServiceDeployer (src)
createWebservice, destroyWebservice, handleNotification, handleShutdownException, handleStartupException, initWebservice, modifyServletConfig, parseWebservicesXML, registerNotificationListener, startWebservice, stopWebservice, 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
 

Field Detail

EJB_ENDPOINT_WEBAPP_URL

public static final java.lang.String EJB_ENDPOINT_WEBAPP_URL
See Also:
Constant Field Values (src)
Constructor Detail

ServiceDeployerEJB

public ServiceDeployerEJB()
Method Detail

setEJBDeployer

public void setEJBDeployer(ObjectName (src)  deployerName)
Set the service name of the EJB deployer


setMainDeployer

public void setMainDeployer(ObjectName (src)  deployerName)
Set the service name of the Main deployer


startService

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

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 EJBDeployer

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

deployWebservices

protected void deployWebservices(DeploymentInfo (src)  di,
                                 WebservicesMetaData (src)  webservices)
                          throws DeploymentException (src) 
Description copied from class: ServiceDeployer (src)
Deploy the webservices using the AxisService MBean

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

undeployWebservices

protected void undeployWebservices(DeploymentInfo (src)  di,
                                   WebservicesMetaData (src)  webservices)
Description copied from class: ServiceDeployer (src)
Undeploy the webservices using the AxisService MBean

Overrides:
undeployWebservices in class ServiceDeployer (src)

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)

getServiceEndpointServletName

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

Specified by:
getServiceEndpointServletName in class ServiceDeployer (src)