Package org.apache.cxf.jca.cxf
Class ConnectionFactoryImpl
java.lang.Object
org.apache.cxf.jca.cxf.ConnectionFactoryImpl
- All Implemented Interfaces:
jakarta.resource.Referenceable,Serializable,Referenceable,CXFConnectionFactory
public class ConnectionFactoryImpl
extends Object
implements CXFConnectionFactory, jakarta.resource.Referenceable, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionFactoryImpl(jakarta.resource.spi.ManagedConnectionFactory aMCF, jakarta.resource.spi.ConnectionManager aCM) -
Method Summary
Modifier and TypeMethodDescriptiongetBus()Returns the underlyingBusfor this connection factory.getConnection(CXFConnectionParam param) Creates a client proxy based on the connection parameter object.voidsetReference(Reference ref)
-
Constructor Details
-
ConnectionFactoryImpl
public ConnectionFactoryImpl(jakarta.resource.spi.ManagedConnectionFactory aMCF, jakarta.resource.spi.ConnectionManager aCM)
-
-
Method Details
-
setReference
- Specified by:
setReferencein interfacejakarta.resource.Referenceable
-
getReference
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
getBus
Description copied from interface:CXFConnectionFactoryReturns the underlyingBusfor this connection factory. In some J2EE environments, for example Weblogic, theBusand dependent classes are not available to the J2EE application. In this case the CXF runtime jar:cxf-install-dir/cxf/lib/cxf-rt-version.jarshould be added to the classpath of the application server. Once, theBusclass is available on the system classpath, then the returned object may be cast toBus. In other environments, this cast should be safe without having to modify the classpathorg.apache.cxf.Bus = (org.apache.cxf.Bus)connectionFactory.getBus();- Specified by:
getBusin interfaceCXFConnectionFactory- Returns:
- the connection factory&s
Bus
-
getConnection
Description copied from interface:CXFConnectionFactoryCreates a client proxy based on the connection parameter object.- Specified by:
getConnectionin interfaceCXFConnectionFactory- Returns:
- A proxy object that implements both the given
ifaceand theConnectioninterface. It represents the Web service associated with the specified service. - Throws:
jakarta.resource.ResourceException
-