|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
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
(src)
Nested Class Summary | |
class |
ServiceDeployer.ServiceLocationResolver (src)
This guy resolves the service location, when ask to do so |
Field Summary | |
static java.lang.String |
INIT_PARAM_SERVICE_ENDPOINT_IMPL
|
static java.lang.String |
INIT_PARAM_WEBSERVICE_ID
|
static java.lang.String |
WEBSERVICE_CONTEXT_ROOT
|
protected java.util.Map |
webservicesMap
Maps the deployment url the the WebservicesMetaData |
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 | |
ServiceDeployer()
|
Method Summary | |
protected void |
createWebservice(DeploymentInfo (src) di)
Overwrite to create the webservice Is called when the parent deployer sends the CREATE_NOTIFICATION. |
protected void |
deployWebservices(DeploymentInfo (src) di,
WebservicesMetaData (src) webservices)
Deploy the webservices using the AxisService MBean |
protected void |
destroyWebservice(DeploymentInfo (src) di)
Overwrite to destroy the webservice This method is called when the parent deployer sends the DESTROY_NOTIFICATION. |
protected abstract java.lang.String |
getServiceEndpointServletName()
Override to return the name of the service endpoint servlet |
protected abstract java.net.URL |
getWebservicesDescriptor(DeploymentInfo (src) di)
Get the resource name of the webservices.xml descriptor. |
void |
handleNotification(Notification (src) notification,
java.lang.Object handback)
Callback method from the broadcaster MBean this listener implementation is registered to. |
protected void |
handleShutdownException(java.lang.String moduleName,
java.lang.Throwable th)
Handle all webservice deployment exceptions. |
protected void |
handleStartupException(DeploymentInfo (src) di,
java.lang.Throwable th)
Handle all webservice deployment exceptions. |
protected void |
initWebservice(DeploymentInfo (src) di)
Overwrite to initialize the webservice Is called when the parent deployer sends the INIT_NOTIFICATION. |
protected boolean |
modifyServletConfig(Document doc,
java.lang.String servletName,
PortComponentInfo (src) pcInfo)
Modify the servlet-class element |
protected WebservicesMetaData (src) |
parseWebservicesXML(DeploymentInfo (src) di,
java.net.URL webservicesURL)
Unmarshal the webservices.xml |
protected void |
registerNotificationListener(ObjectName (src) serviceName)
Register the notification listener |
protected void |
startService()
Get a proxy to AxisService |
protected void |
startWebservice(DeploymentInfo (src) di)
Overwrite to start the webservice Is called when the parent deployer sends the START_NOTIFICATION. |
protected void |
stopWebservice(DeploymentInfo (src) di)
Overwrite to stop the webservice Is called when the parent deployer sends the STOP_NOTIFICATION. |
protected void |
undeployWebservices(DeploymentInfo (src) di,
WebservicesMetaData (src) webservices)
Undeploy the webservices using the AxisService MBean |
protected void |
unregisterNotificationListener(ObjectName (src) serviceName)
Unregister the notification listener |
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, stopService |
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 |
public static final java.lang.String INIT_PARAM_WEBSERVICE_ID
public static final java.lang.String INIT_PARAM_SERVICE_ENDPOINT_IMPL
public static final java.lang.String WEBSERVICE_CONTEXT_ROOT
protected java.util.Map webservicesMap
Constructor Detail |
public ServiceDeployer()
Method Detail |
protected void startService() throws java.lang.Exception
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
public void handleNotification(Notification (src) notification, java.lang.Object handback)
handleNotification
in interface NotificationListener (src)
notification
- the notification objecthandback
- the handback object given to the broadcaster
upon listener registrationprotected void initWebservice(DeploymentInfo (src) di) throws DeploymentException (src)
DeploymentException (src)
protected void createWebservice(DeploymentInfo (src) di) throws DeploymentException (src)
DeploymentException (src)
protected abstract java.net.URL getWebservicesDescriptor(DeploymentInfo (src) di)
protected void startWebservice(DeploymentInfo (src) di) throws DeploymentException (src)
DeploymentException (src)
protected void stopWebservice(DeploymentInfo (src) di)
protected void destroyWebservice(DeploymentInfo (src) di)
protected void handleStartupException(DeploymentInfo (src) di, java.lang.Throwable th)
protected void handleShutdownException(java.lang.String moduleName, java.lang.Throwable th)
protected void registerNotificationListener(ObjectName (src) serviceName) throws InstanceNotFoundException (src)
InstanceNotFoundException (src)
protected void unregisterNotificationListener(ObjectName (src) serviceName)
protected WebservicesMetaData (src) parseWebservicesXML(DeploymentInfo (src) di, java.net.URL webservicesURL) throws DeploymentException (src)
DeploymentException (src)
protected void deployWebservices(DeploymentInfo (src) di, WebservicesMetaData (src) webservices) throws DeploymentException (src)
DeploymentException (src)
protected void undeployWebservices(DeploymentInfo (src) di, WebservicesMetaData (src) webservices)
protected boolean modifyServletConfig(Document doc, java.lang.String servletName, PortComponentInfo (src) pcInfo) throws DeploymentException (src)
DeploymentException (src)
protected abstract java.lang.String getServiceEndpointServletName()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |