org.ow2.jonas.web.tomcat6.ws
Class WSDeployment

java.lang.Object
  extended by org.ow2.jonas.web.tomcat6.ws.WSDeployment
All Implemented Interfaces:
IWebServiceDeploymentManager

public class WSDeployment
extends Object
implements IWebServiceDeploymentManager

Author:
Guillaume Sauthier

Constructor Summary
WSDeployment(Tomcat6Service tomcatService)
          Construct a new WSDeployment manager based on Tomcat.
 
Method Summary
 void registerWSEndpoint(IWebServiceEndpoint endpoint)
          Add support for a given IWebServiceEndpoint (i.e.
 void setWorkDirectory(String workDirectory)
           
 void unregisterWSEndpoint(IWebServiceEndpoint endpoint)
          Remove support for the given IWebServiceEndpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDeployment

public WSDeployment(Tomcat6Service tomcatService)
Construct a new WSDeployment manager based on Tomcat.

Parameters:
tomcatService - Tomcat instance
Method Detail

setWorkDirectory

public void setWorkDirectory(String workDirectory)
Parameters:
workDirectory - the workDirectory to set

registerWSEndpoint

public void registerWSEndpoint(IWebServiceEndpoint endpoint)
                        throws WSException
Description copied from interface: IWebServiceDeploymentManager
Add support for a given IWebServiceEndpoint (i.e. deploy). POJO based web services deployment example:
As POJO web services are located inside a web-application (.war), a Context needs to be configured or updated to allow execution of the POJO web service.
For example, if a POJO webservice is declared using the WEB-INF/web.xml:
   <servlet>
     <servlet-name>My POJO WebService</servlet-name>
     <servlet-class>my.company.app.ServiceImplementationBean</servlet-class>
   </servlet>
 
Then the servlet element's value has to be replaced by a real Servlet implementation. Some other changes are probably needed but not described here as they are implementation specific.
EJB based web service deployment example:
The web service has to be deployed in a web container (servlet container), an implementation of this method will create a new Context for the endpoint and then will configure it.

Specified by:
registerWSEndpoint in interface IWebServiceDeploymentManager
Parameters:
endpoint - the IWebServiceEndpoint to deploy.
Throws:
WSException - if deployment fails or if the IWebServiceEndpoint is already registered.
See Also:
IWebServiceDeploymentManager.registerWSEndpoint(org.ow2.jonas.ws.jaxws.IWebServiceEndpoint)

unregisterWSEndpoint

public void unregisterWSEndpoint(IWebServiceEndpoint endpoint)
                          throws WSException
Description copied from interface: IWebServiceDeploymentManager
Remove support for the given IWebServiceEndpoint. After a call to this method, the given IWebServiceEndpoint will not be accessible anymore.

Specified by:
unregisterWSEndpoint in interface IWebServiceDeploymentManager
Parameters:
endpoint - the IWebServiceEndpoint to undeploy.
Throws:
WSException - if undeployment fails or if the IWebServiceEndpoint is not registered.


Copyright © 2010 OW2 Consortium. All Rights Reserved.