org.jboss.webservice
Class AxisService

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

public class AxisService
extends ServiceMBeanSupport (src)

A service that keeps track of the Axis server and client engine and can deploy/undeploy services to/from Axis using the Axis wsdd format.

Internally it keeps a registry of deployed PortComponentInfo (src) objects. The key into that registry is [deploymentName]#[port-component-name]

Since:
15-April-2004

Field Summary
 
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
AxisService()
           
 
Method Summary
 void deployService(PortComponentInfo (src)  pcInfo)
          Deploy a webservice from a Axis WSDD URL
 AxisServer (src) getAxisServer()
          Get axis server singleton
 java.lang.String getInvokerProviderEJB()
           
 java.lang.String getInvokerProviderJSE()
           
 MetaDataRegistry (src) getMetaDataRegistry()
          Get MetaDataBeanSerializer/Deserializer metaData registry
 PortComponentInfo (src) getPortComponentInfo(java.lang.String wsID)
          Get port component info for a given web service id The keys into the registry are: [deploment.ear]/[deployment.?ar]#PortComponentName A client deployment may use a 'port-component-link' like: [deployment.?ar]#PortComponentName In case we don't find a direct match we try matching by key.endsWith(wsID) See CTS test: /com/sun/ts/tests/webservices/deploy/portcomplink
 java.lang.String getWebServiceHost()
           
 int getWebServicePort()
           
 int getWebServiceSecurePort()
           
 boolean isAlwaysModifySOAPAddress()
           
 PortComponentInfo (src) [] listServiceEndpointInfos()
          Returns a the array of registered PortComponentInfo objects
 java.lang.String listServiceEndpoints()
          List the registered webservices
 void setAlwaysModifySOAPAddress(boolean modify)
           
 void setInvokerProviderEJB(java.lang.String invokerProviderEJB)
           
 void setInvokerProviderJSE(java.lang.String invokerProviderJSE)
           
 void setWebServiceHost(java.lang.String host)
           
 void setWebServicePort(int port)
           
 void setWebServiceSecurePort(int port)
           
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 void undeployService(java.lang.String serviceID)
          Undeploy a webservice for a given web service id
 
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

AxisService

public AxisService()
Method Detail

startService

protected void startService()
                     throws java.lang.Exception
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

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

stopService

protected void stopService()
                    throws java.lang.Exception
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

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

getWebServiceHost

public java.lang.String getWebServiceHost()

getWebServicePort

public int getWebServicePort()

getWebServiceSecurePort

public int getWebServiceSecurePort()

isAlwaysModifySOAPAddress

public boolean isAlwaysModifySOAPAddress()

setWebServiceHost

public void setWebServiceHost(java.lang.String host)

setWebServicePort

public void setWebServicePort(int port)

setWebServiceSecurePort

public void setWebServiceSecurePort(int port)

setAlwaysModifySOAPAddress

public void setAlwaysModifySOAPAddress(boolean modify)

getInvokerProviderEJB

public java.lang.String getInvokerProviderEJB()

setInvokerProviderEJB

public void setInvokerProviderEJB(java.lang.String invokerProviderEJB)

getInvokerProviderJSE

public java.lang.String getInvokerProviderJSE()

setInvokerProviderJSE

public void setInvokerProviderJSE(java.lang.String invokerProviderJSE)

getAxisServer

public AxisServer (src)  getAxisServer()
Get axis server singleton


getMetaDataRegistry

public MetaDataRegistry (src)  getMetaDataRegistry()
Get MetaDataBeanSerializer/Deserializer metaData registry


getPortComponentInfo

public PortComponentInfo (src)  getPortComponentInfo(java.lang.String wsID)
Get port component info for a given web service id The keys into the registry are: [deploment.ear]/[deployment.?ar]#PortComponentName A client deployment may use a 'port-component-link' like: [deployment.?ar]#PortComponentName In case we don't find a direct match we try matching by key.endsWith(wsID) See CTS test: /com/sun/ts/tests/webservices/deploy/portcomplink

Parameters:
wsID - The web service identifier
Returns:
The port component info, or null

listServiceEndpointInfos

public PortComponentInfo (src) [] listServiceEndpointInfos()
Returns a the array of registered PortComponentInfo objects


listServiceEndpoints

public java.lang.String listServiceEndpoints()
List the registered webservices


deployService

public void deployService(PortComponentInfo (src)  pcInfo)
                   throws java.lang.Exception
Deploy a webservice from a Axis WSDD URL

Throws:
java.lang.Exception

undeployService

public void undeployService(java.lang.String serviceID)
                     throws java.lang.Exception
Undeploy a webservice for a given web service id

Throws:
java.lang.Exception