|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.webservice.ServiceDeployer
public abstract class 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_SERVICE_ENDPOINT_ID
|
static String |
INIT_PARAM_SERVICE_ENDPOINT_IMPL
|
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(org.jboss.deployment.DeploymentInfo di,
Throwable th)
Handle all webservice deployment exceptions. |
protected void |
initTransportGuarantee(org.dom4j.Document doc,
String servletName,
PortComponentInfo pcInfo)
|
protected boolean |
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()
Get a proxy to AxisService |
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 |
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, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, 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_SERVICE_ENDPOINT_ID
public static final String INIT_PARAM_SERVICE_ENDPOINT_IMPL
protected Map webservicesMap
Constructor Detail |
---|
public ServiceDeployer()
Method Detail |
---|
protected void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
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 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(org.jboss.deployment.DeploymentInfo di, 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 boolean modifyServletConfig(org.dom4j.Document doc, String servletName, PortComponentInfo pcInfo) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void initTransportGuarantee(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 |