org.objectweb.jonas.ws
Class AbsWebServicesServiceImpl

java.lang.Object
  extended byorg.objectweb.jonas.management.ReconfigDispatcher
      extended byorg.objectweb.jonas.service.AbsServiceImpl
          extended byorg.objectweb.jonas.ws.AbsWebServicesServiceImpl
All Implemented Interfaces:
AbsWebServicesServiceImplMBean, javax.management.NotificationBroadcaster, ReconfigDispatcherMBean, Service, WebServicesService
Direct Known Subclasses:
AxisWSServiceImpl

public abstract class AbsWebServicesServiceImpl
extends AbsServiceImpl
implements WebServicesService, AbsWebServicesServiceImplMBean

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

Field Summary
protected static org.objectweb.util.monolog.api.Logger logger
          Logger for this service.
static java.lang.String PARSINGWITHVALIDATION
          WebServices service configuration properties : Xml parsing with validation
static java.lang.String WS_BASE
          WebServices service configuration properties : base for web services properties;
static java.lang.String WSDL_HANDLERS
          WebServices service configuration properties : WSDL handlers
protected  WSDLManager wsdlManager
          Manager for WSDL files publishing.
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
AbsWebServicesServiceImpl()
           
 
Method Summary
protected  void deployEndpoint(java.lang.ClassLoader cl, WSDeploymentDesc wsdd)
          DOCUMENT ME!
 void deployWebServices(javax.naming.Context ctx)
          Get, update and publish WSDL documents contained in a set of jars and wars.
protected  void doDeployWebServices(javax.naming.Context ctx)
          Deploy the given Web services.
protected  void doInit(javax.naming.Context ctx)
          Initialize the service.
 void doStart()
          Empty Method for WebServices (no running application).
 void doStop()
          Empty Method for WebServices (no running application).
 void locateWSDL()
          DOCUMENT ME!
 void publishWSDL(WSDLFile wsdl)
          Publish the specified WSDL Definition.
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.ws.WebServicesService
configureJaxRpcService, getDefaultServletName
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Field Detail

PARSINGWITHVALIDATION

public static final java.lang.String PARSINGWITHVALIDATION
WebServices service configuration properties : Xml parsing with validation

See Also:
Constant Field Values

WSDL_HANDLERS

public static final java.lang.String WSDL_HANDLERS
WebServices service configuration properties : WSDL handlers

See Also:
Constant Field Values

WS_BASE

public static final java.lang.String WS_BASE
WebServices service configuration properties : base for web services properties;

See Also:
Constant Field Values

logger

protected static org.objectweb.util.monolog.api.Logger logger
Logger for this service.


wsdlManager

protected WSDLManager wsdlManager
Manager for WSDL files publishing.

Constructor Detail

AbsWebServicesServiceImpl

public AbsWebServicesServiceImpl()
Method Detail

doInit

protected void doInit(javax.naming.Context ctx)
               throws ServiceException
Initialize the service.

Specified by:
doInit in class AbsServiceImpl
Parameters:
ctx - the configuration context of the service.
Throws:
ServiceException - if the initialization failed.

deployWebServices

public void deployWebServices(javax.naming.Context ctx)
                       throws WSServiceException
Get, update and publish WSDL documents contained in a set of jars and wars.

Specified by:
deployWebServices in interface WebServicesService
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).
Throws:
WSServiceException - if an error occurs during the deployment.

doDeployWebServices

protected void doDeployWebServices(javax.naming.Context ctx)
                            throws WSServiceException
Deploy the given Web services.

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

deployEndpoint

protected void deployEndpoint(java.lang.ClassLoader cl,
                              WSDeploymentDesc wsdd)
DOCUMENT ME!

Parameters:
cl - DOCUMENT ME!
wsdd - DOCUMENT ME!

locateWSDL

public void locateWSDL()
DOCUMENT ME!

Specified by:
locateWSDL in interface WebServicesService

publishWSDL

public void publishWSDL(WSDLFile wsdl)
Publish the specified WSDL Definition.

Specified by:
publishWSDL in interface WebServicesService
Parameters:
wsdl - The WSDL Definition to be published
See Also:
WSDLManager

doStop

public void doStop()
            throws ServiceException
Empty Method for WebServices (no running application).

Specified by:
doStop in class AbsServiceImpl
Throws:
ServiceException - never thrown

doStart

public void doStart()
             throws ServiceException
Empty Method for WebServices (no running application).

Specified by:
doStart in class AbsServiceImpl
Throws:
ServiceException - never thrown