Package org.apache.cxf.jca.outbound
Class ConnectionFactoryImpl
java.lang.Object
org.apache.cxf.jca.outbound.ConnectionFactoryImpl
- All Implemented Interfaces:
jakarta.resource.Referenceable,Serializable,Referenceable,CXFConnectionFactory
Implement ConnectionFactory that delegate allocation of connection
to
ConnectionManager.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionFactoryImpl(jakarta.resource.spi.ManagedConnectionFactory mcf, jakarta.resource.spi.ConnectionManager connectionManager) -
Method Summary
Modifier and TypeMethodDescriptionCreates a CXFConnection object which allows access to CXF web service based on the CXFConnectionSpec object.voidsetReference(Reference reference)
-
Constructor Details
-
ConnectionFactoryImpl
public ConnectionFactoryImpl(jakarta.resource.spi.ManagedConnectionFactory mcf, jakarta.resource.spi.ConnectionManager connectionManager)
-
-
Method Details
-
setReference
- Specified by:
setReferencein interfacejakarta.resource.Referenceable
-
getReference
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
getConnection
public CXFConnection getConnection(CXFConnectionSpec spec) throws jakarta.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:
jakarta.resource.ResourceException
-