|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.webservice.ServiceDeployer
A deployer service that manages WS4EE compliant Web-Services within JMX by translating/delegating to an axis deployer.
This service receives deployment notifications from the EJBDeployer and AbstractWebContainer and deploys the webservices using theAxisService
Nested Class Summary | |
class |
ServiceDeployer.ServiceLocationResolver
This guy resolves the service location, when ask to do so |
Field Summary | |
static String |
INIT_PARAM_WEBSERVICE_ID
|
static String |
WEBSERVICE_CONTEXT_ROOT
|
protected Map |
webservicesMap
Maps the deployment url the the WebservicesMetaData |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
ServiceDeployer()
|
Method Summary | |
protected void |
createWebservice(org.jboss.deployment.DeploymentInfo di)
Overwrite to create the webservice Is called when the parent deployer sends the CREATE_NOTIFICATION. |
protected void |
deployWebservices(org.jboss.deployment.DeploymentInfo di,
WebservicesMetaData webservices)
Deploy the webservices using the AxisService MBean |
protected void |
destroyWebservice(org.jboss.deployment.DeploymentInfo di)
Overwrite to destroy the webservice This method is called when the parent deployer sends the DESTROY_NOTIFICATION. |
protected abstract String |
getServiceEndpointServletName()
Override to return the name of the service endpoint servlet |
protected abstract URL |
getWebservicesDescriptor(org.jboss.deployment.DeploymentInfo di)
Get the resource name of the webservices.xml descriptor. |
void |
handleNotification(javax.management.Notification notification,
Object handback)
Callback method from the broadcaster MBean this listener implementation is registered to. |
protected void |
handleShutdownException(String moduleName,
Throwable th)
Handle all webservice deployment exceptions. |
protected void |
handleStartupException(String moduleName,
Throwable th)
Handle all webservice deployment exceptions. |
protected void |
initWebservice(org.jboss.deployment.DeploymentInfo di)
Overwrite to initialize the webservice Is called when the parent deployer sends the INIT_NOTIFICATION. |
protected void |
modifyServletConfig(org.dom4j.Document doc,
String servletName,
PortComponentInfo pcInfo)
Modify the servlet-class element |
protected WebservicesMetaData |
parseWebservicesXML(org.jboss.deployment.DeploymentInfo di,
URL webservicesURL)
Unmarshal the webservices.xml |
protected void |
registerNotificationListener(javax.management.ObjectName serviceName)
Register the notification listener |
protected void |
startService()
Register this service as NotificationListener to the EJBDeployer, WARDeployer |
protected void |
startWebservice(org.jboss.deployment.DeploymentInfo di)
Overwrite to start the webservice Is called when the parent deployer sends the START_NOTIFICATION. |
protected void |
stopService()
Unregister this service as NotificationListener from the EJBDeployer, WARDeployer |
protected void |
stopWebservice(org.jboss.deployment.DeploymentInfo di)
Overwrite to stop the webservice Is called when the parent deployer sends the STOP_NOTIFICATION. |
protected void |
undeployWebservices(org.jboss.deployment.DeploymentInfo di,
WebservicesMetaData webservices)
Undeploy the webservices using the AxisService MBean |
protected void |
unregisterNotificationListener(javax.management.ObjectName serviceName)
Unregister the notification listener |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Field Detail |
public static final String INIT_PARAM_WEBSERVICE_ID
public static final String WEBSERVICE_CONTEXT_ROOT
protected Map webservicesMap
Constructor Detail |
public ServiceDeployer()
Method Detail |
protected void startService() throws Exception
Exception
protected void stopService()
public void handleNotification(javax.management.Notification notification, Object handback)
handleNotification
in interface javax.management.NotificationListener
notification
- the notification objecthandback
- the handback object given to the broadcaster
upon listener registrationprotected void initWebservice(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void createWebservice(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected abstract URL getWebservicesDescriptor(org.jboss.deployment.DeploymentInfo di)
protected void startWebservice(org.jboss.deployment.DeploymentInfo di) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void stopWebservice(org.jboss.deployment.DeploymentInfo di)
protected void destroyWebservice(org.jboss.deployment.DeploymentInfo di)
protected void handleStartupException(String moduleName, Throwable th)
protected void handleShutdownException(String moduleName, Throwable th)
protected void registerNotificationListener(javax.management.ObjectName serviceName) throws javax.management.InstanceNotFoundException
javax.management.InstanceNotFoundException
protected void unregisterNotificationListener(javax.management.ObjectName serviceName)
protected WebservicesMetaData parseWebservicesXML(org.jboss.deployment.DeploymentInfo di, URL webservicesURL) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void deployWebservices(org.jboss.deployment.DeploymentInfo di, WebservicesMetaData webservices) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void undeployWebservices(org.jboss.deployment.DeploymentInfo di, WebservicesMetaData webservices)
protected void modifyServletConfig(org.dom4j.Document doc, String servletName, PortComponentInfo pcInfo) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected abstract String getServiceEndpointServletName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |