Package org.apache.cxf.jca.outbound
Class ConnectionFactoryImpl
- java.lang.Object
-
- org.apache.cxf.jca.outbound.ConnectionFactoryImpl
-
- All Implemented Interfaces:
Serializable,Referenceable,javax.resource.Referenceable,CXFConnectionFactory
public class ConnectionFactoryImpl extends Object implements CXFConnectionFactory
Implement ConnectionFactory that delegate allocation of connection toConnectionManager.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager connectionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CXFConnectiongetConnection(CXFConnectionSpec spec)Creates a CXFConnection object which allows access to CXF web service based on the CXFConnectionSpec object.ReferencegetReference()voidsetReference(Reference reference)
-
-
-
Method Detail
-
setReference
public void setReference(Reference reference)
- Specified by:
setReferencein interfacejavax.resource.Referenceable
-
getReference
public Reference getReference() throws NamingException
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
getConnection
public CXFConnection getConnection(CXFConnectionSpec spec) throws javax.resource.ResourceException
Description copied from interface:CXFConnectionFactoryCreates a CXFConnection object which allows access to CXF web service based on the CXFConnectionSpec object. Required CXFConnectionSpec fields are wsdlURL, serviceClass, endpointName, and serviceName. Each connection returned by this method MUST be closed by calling theCXFConnection.close()when it is no longer needed.- Specified by:
getConnectionin interfaceCXFConnectionFactory- Returns:
- CXFConnection
- Throws:
javax.resource.ResourceException
-
-