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 underlyingfor this connection factory.invalid reference
BusgetConnection(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 underlyingfor this connection factory. In some J2EE environments, for example Weblogic, theinvalid reference
Busand dependent classes are not available to the J2EE application. In this case the CXF runtime jar:invalid reference
Buscxf-install-dir/cxf/lib/cxf-rt-version.jarshould be added to the classpath of the application server. Once, theclass is available on the system classpath, then the returned object may be cast toinvalid reference
Bus. In other environments, this cast should be safe without having to modify the classpathinvalid reference
Busorg.apache.cxf.Bus = (org.apache.cxf.Bus)connectionFactory.getBus();- Specified by:
getBusin interfaceCXFConnectionFactory- Returns:
- the connection factory&s
invalid reference
Bus
-
getConnection
Description copied from interface:CXFConnectionFactoryCreates a client proxy based on the connection parameter object.- Specified by:
getConnectionin interfaceCXFConnectionFactory- Parameters:
param-- 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
-