org.objectweb.jonas.ws
Interface WebServicesService

All Superinterfaces:
Service
All Known Implementing Classes:
AbsWebServicesServiceImpl

public interface WebServicesService
extends Service

WebServices Service interface.

Author:
Guillaume Sauthier

Method Summary
 void deployWebServices(javax.naming.Context ctx)
          explore the context classloader to find Web service deployment descriptor (for endpoints) and service-ref element within standard deployment descriptor (for clients).
 java.lang.String getDefaultServletName()
          Return the Deafult Servlet Name tio use for SSB WebServices.
 void removeCache(java.lang.ClassLoader cl)
          Remove the WebServices descriptors associated to the given ClassLoader.
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

deployWebServices

public void deployWebServices(javax.naming.Context ctx)
                       throws WSServiceException
explore the context classloader to find Web service deployment descriptor (for endpoints) and service-ref element within standard deployment descriptor (for clients). It registers each endpoints in WS engine publishing relative WSDLs, and it instanciates and binds in the registry each clients classes.

Parameters:
ctx - the context containing the configuration to deploy the wars.
This context contains the following parameters :
- jarUrls the list of the urls of the jars to deploy.
- warUrls the list of the urls of the wars to deploy.
- parentClassLoader the parent classLoader of the wars.
- earClassLoader the ear classLoader of the j2ee app.
- altDDs the optional URI of deployment descriptor.
Throws:
WSServiceException - if an error occurs during the deployment.

getDefaultServletName

public java.lang.String getDefaultServletName()
Return the Deafult Servlet Name tio use for SSB WebServices.

Returns:
the Deafult Servlet Name tio use for SSB WebServices.

removeCache

public void removeCache(java.lang.ClassLoader cl)
Remove the WebServices descriptors associated to the given ClassLoader.

Parameters:
cl - the key ClassLoader