Class ConnectionFactoryImpl

java.lang.Object
org.apache.cxf.jca.outbound.ConnectionFactoryImpl
All Implemented Interfaces:
jakarta.resource.Referenceable, Serializable, Referenceable, CXFConnectionFactory

public class ConnectionFactoryImpl extends Object implements CXFConnectionFactory
Implement ConnectionFactory that delegate allocation of connection to ConnectionManager.
See Also:
  • Constructor Details

    • ConnectionFactoryImpl

      public ConnectionFactoryImpl(jakarta.resource.spi.ManagedConnectionFactory mcf, jakarta.resource.spi.ConnectionManager connectionManager)
  • Method Details

    • setReference

      public void setReference(Reference reference)
      Specified by:
      setReference in interface jakarta.resource.Referenceable
    • getReference

      public Reference getReference() throws NamingException
      Specified by:
      getReference in interface Referenceable
      Throws:
      NamingException
    • getConnection

      public CXFConnection getConnection(CXFConnectionSpec spec) throws jakarta.resource.ResourceException
      Description copied from interface: CXFConnectionFactory
      Creates 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 the CXFConnection.close() when it is no longer needed.
      Specified by:
      getConnection in interface CXFConnectionFactory
      Returns:
      CXFConnection
      Throws:
      jakarta.resource.ResourceException