org.ow2.petals.binding.soap.listener.outgoing
Class ServiceClientPoolObjectFactory

java.lang.Object
  extended by org.apache.commons.pool.BasePoolableObjectFactory<PetalsServiceClient>
      extended by org.ow2.petals.binding.soap.listener.outgoing.ServiceClientPoolObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory<PetalsServiceClient>

public class ServiceClientPoolObjectFactory
extends org.apache.commons.pool.BasePoolableObjectFactory<PetalsServiceClient>

Get new Axis2 ServiceClient from the pool factory

Author:
Christophe DENEUX - Cap Gemini, Christophe HAMERLING - eBM WebSourcing

Constructor Summary
ServiceClientPoolObjectFactory(String address, QName operation, URI mep, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions, SoapComponentContext context, org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides, Logger logger, String soapAction, String rampartUserName)
          Creates a new instance of ServiceClientPoolObjectFactory
 
Method Summary
 void destroyObject(PetalsServiceClient obj)
           
protected  void engageModule(PetalsServiceClient petalsServiceClient, String moduleName)
          Engage a module
 PetalsServiceClient makeObject()
           
 
Methods inherited from class org.apache.commons.pool.BasePoolableObjectFactory
activateObject, passivateObject, validateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceClientPoolObjectFactory

public ServiceClientPoolObjectFactory(String address,
                                      QName operation,
                                      URI mep,
                                      org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
                                      SoapComponentContext context,
                                      org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides,
                                      Logger logger,
                                      String soapAction,
                                      String rampartUserName)
Creates a new instance of ServiceClientPoolObjectFactory

Parameters:
operation -
mep -
logger -
soapAction -
rampartUserName -
wsdlDescription -
cdkExtensions -
modules -
Method Detail

engageModule

protected void engageModule(PetalsServiceClient petalsServiceClient,
                            String moduleName)
                     throws org.apache.axis2.AxisFault
Engage a module

Parameters:
petalsServiceClient -
moduleName -
Throws:
org.apache.axis2.AxisFault

makeObject

public PetalsServiceClient makeObject()
                               throws javax.jbi.messaging.MessagingException,
                                      org.apache.axis2.AxisFault
Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory<PetalsServiceClient>
Specified by:
makeObject in class org.apache.commons.pool.BasePoolableObjectFactory<PetalsServiceClient>
Throws:
javax.jbi.messaging.MessagingException
org.apache.axis2.AxisFault

destroyObject

public void destroyObject(PetalsServiceClient obj)
                   throws Exception
Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory<PetalsServiceClient>
Overrides:
destroyObject in class org.apache.commons.pool.BasePoolableObjectFactory<PetalsServiceClient>
Throws:
Exception


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.