org.objectweb.jonas.ws.AbsWebServicesServiceImpl Class Reference

Inherits org.objectweb.jonas.ws.WebServicesService, and org.objectweb.jonas.ws.AbsWebServicesServiceImplMBean.

Inherited by org.objectweb.jonas.ws.axis.AxisWSServiceImpl.

Inheritance diagram for org.objectweb.jonas.ws.AbsWebServicesServiceImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.ws.AbsWebServicesServiceImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void deployWebServices (Context ctx) throws WSServiceException
void doStop () throws ServiceException
void doStart () throws ServiceException
void removeCache (ClassLoader cl)
void completeWSDeployment (Context ctx) throws WSServiceException

Static Public Attributes

final String CLASSLOADER_CTX_PARAM = "classloader"
final String PARSINGWITHVALIDATION = "jonas.service.ws.parsingwithvalidation"
final String WSDL_HANDLERS = "jonas.service.ws.wsdlhandlers"
final String WS_BASE = "jonas.service.ws."

Protected Member Functions

void doInit (Context ctx) throws ServiceException
void doDeployWebServices (Context ctx) throws WSServiceException

Static Protected Member Functions

I18n getI18n ()
Logger getLogger ()

Detailed Description

implements deployment process and declares commons abstract methods for all (used) Web services engine. Actually we consider Glue and AXIS.
Author:
Guillaume Sauthier

Xavier Delplanque

Definition at line 89 of file AbsWebServicesServiceImpl.java.


Member Function Documentation

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.completeWSDeployment Context  ctx  )  throws WSServiceException
 

See also:
org.objectweb.jonas.ws.WebServicesService.completeWSDeployment(javax.naming.Context)

1. Get current deployer ClassLoader 2. Get associated Stack 3. For each DeployInfo element from the Stack a. Iterate through its ServiceDesc

  • create ServletEndpoints instance
  • fill it with PortComponentDesc info b. Bind ServletEndpoints instance

Implements org.objectweb.jonas.ws.WebServicesService.

Definition at line 803 of file AbsWebServicesServiceImpl.java.

References org.objectweb.jonas.ws.AbsWebServicesServiceImpl.CLASSLOADER_CTX_PARAM, org.objectweb.jonas_lib.naming.ContainerNaming.getComponentContext(), org.objectweb.jonas.web.JWebContainerService.getContextLinkedClassLoader(), org.objectweb.jonas.ws.AbsWebServicesServiceImpl.WSDeployInfo.getDescriptor(), org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.getDisplayName(), org.objectweb.jonas_ws.deployment.api.ServiceDesc.getName(), org.objectweb.jonas_ws.deployment.api.ServiceDesc.getPortComponents(), org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.getServiceDescs(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.getSibLink(), and org.objectweb.jonas.ws.AbsWebServicesServiceImpl.WSDeployInfo.getWarURL().

Here is the call graph for this function:

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.deployWebServices Context  ctx  )  throws WSServiceException
 

Get, update and publish WSDL documents contained in a set of jars and wars.

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.
- ejbClassLoader the classLoader of the ejbs(used for webapps too).
- earClassLoader the ear classLoader of the j2ee app.
- warCtxRootMapping the webapps contextRoots with associated war name.
- unpackDir the directory where EAR has been unpacked (optionnal for pure webapp webservices).
Exceptions:
WSServiceException if an error occurs during the deployment.

For each Jar/WarUrls in the given ctx : - Get the jar/war deployment desc - Get the WSDL definition - Update the WSDL location - Publish the WSDL

Default Naming Convention for Webapp linked to Ejb <ejb-name>.jar -> <ejb-name>.war

Implements org.objectweb.jonas.ws.WebServicesService.

Definition at line 215 of file AbsWebServicesServiceImpl.java.

References org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doDeployWebServices(), org.objectweb.jonas_lib.loader.WebappClassLoader.getBaseURL(), org.objectweb.jonas.web.JWebContainerService.getClassLoader(), org.objectweb.jonas_lib.I18n.getMessage(), and org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.getWarFile().

Here is the call graph for this function:

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doDeployWebServices Context  ctx  )  throws WSServiceException [protected]
 

Deploy the given Web services.

Parameters:
ctx Context used for parameter passing.
Exceptions:
WSServiceException when error occurs.

Context structure : - wsDD Web Services deployment descriptor. - cl Module ClassLoader - earCL Application ClassLoader - warContextRoot the context-root of the war (null in ejb case) - warURL the url of war dispatching SOAP requests

Definition at line 435 of file AbsWebServicesServiceImpl.java.

References org.objectweb.jonas_lib.I18n.getMessage(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.getName(), org.objectweb.jonas_ws.deployment.api.ServiceDesc.getPortComponents(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.getQName(), org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.getServiceDescs(), org.objectweb.jonas_ws.deployment.api.ServiceDesc.getWSDL(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.hasJaxRpcImpl(), org.objectweb.jonas.ws.WSDLManager.publish(), org.objectweb.jonas_ws.deployment.api.PortComponentDesc.setEndpointURL(), and org.objectweb.jonas_ws.deployment.api.WSDLFile.setLocation().

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.deployWebServices().

Here is the call graph for this function:

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doInit Context  ctx  )  throws ServiceException [protected]
 

Initialize the service.

Parameters:
ctx the configuration context of the service.
Exceptions:
ServiceException if the initialization failed.

Reimplemented in org.objectweb.jonas.ws.axis.AxisWSServiceImpl.

Definition at line 134 of file AbsWebServicesServiceImpl.java.

References org.objectweb.jonas.ws.WSDLManager.addHandler(), org.objectweb.jonas.common.JProp.getInstance(), org.objectweb.jonas_lib.I18n.getMessage(), org.objectweb.jonas.common.JProp.getValueAsArray(), org.objectweb.jonas.ws.handler.WSDLHandlerFactory.newHandler(), org.objectweb.jonas.ws.AbsWebServicesServiceImpl.PARSINGWITHVALIDATION, and org.objectweb.jonas.ws.AbsWebServicesServiceImpl.WSDL_HANDLERS.

Here is the call graph for this function:

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doStart  )  throws ServiceException
 

Empty Method for WebServices (no running application).

Exceptions:
ServiceException never thrown

Definition at line 738 of file AbsWebServicesServiceImpl.java.

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doStop  )  throws ServiceException
 

Empty Method for WebServices (no running application).

Exceptions:
ServiceException never thrown

Definition at line 731 of file AbsWebServicesServiceImpl.java.

I18n org.objectweb.jonas.ws.AbsWebServicesServiceImpl.getI18n  )  [static, protected]
 

Returns:
Returns the i18n.

Definition at line 789 of file AbsWebServicesServiceImpl.java.

Logger org.objectweb.jonas.ws.AbsWebServicesServiceImpl.getLogger  )  [static, protected]
 

Returns:
Returns the logger.

Definition at line 796 of file AbsWebServicesServiceImpl.java.

Referenced by org.objectweb.jonas.ws.axis.AxisWSServiceImpl.doInit().

void org.objectweb.jonas.ws.AbsWebServicesServiceImpl.removeCache ClassLoader  cl  ) 
 

Remove WebServices descriptors associated to the given ClassLoader

Parameters:
cl key ClassLoader

Implements org.objectweb.jonas.ws.WebServicesService.

Definition at line 781 of file AbsWebServicesServiceImpl.java.


Member Data Documentation

final String org.objectweb.jonas.ws.AbsWebServicesServiceImpl.CLASSLOADER_CTX_PARAM = "classloader" [static]
 

classloader Context param

Definition at line 95 of file AbsWebServicesServiceImpl.java.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.completeWSDeployment().

final String org.objectweb.jonas.ws.AbsWebServicesServiceImpl.PARSINGWITHVALIDATION = "jonas.service.ws.parsingwithvalidation" [static]
 

WebServices service configuration properties : Xml parsing with validation

Definition at line 101 of file AbsWebServicesServiceImpl.java.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doInit().

final String org.objectweb.jonas.ws.AbsWebServicesServiceImpl.WS_BASE = "jonas.service.ws." [static]
 

WebServices service configuration properties : base for web services properties.

Definition at line 110 of file AbsWebServicesServiceImpl.java.

final String org.objectweb.jonas.ws.AbsWebServicesServiceImpl.WSDL_HANDLERS = "jonas.service.ws.wsdlhandlers" [static]
 

WebServices service configuration properties : WSDL handlers

Definition at line 104 of file AbsWebServicesServiceImpl.java.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doInit().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:09:50 2005 for JOnAS by  doxygen 1.3.9.1