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 completeWSDeployment(javax.naming.Context ctx)
          Complete the WebServices Deployment (add informations in web environment)
 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).
 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.

removeCache

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

Parameters:
cl - the key ClassLoader

completeWSDeployment

public void completeWSDeployment(javax.naming.Context ctx)
                          throws WSServiceException
Complete the WebServices Deployment (add informations in web environment)

Parameters:
ctx - Context containing the key ClassLoader
Throws:
WSServiceException - When Endpoints URLs binding fails