Package org.apache.cxf.jca.cxf
Class ConnectionFactoryImpl
- java.lang.Object
-
- org.apache.cxf.jca.cxf.ConnectionFactoryImpl
-
- All Implemented Interfaces:
Serializable,Referenceable,javax.resource.Referenceable,CXFConnectionFactory
public class ConnectionFactoryImpl extends Object implements CXFConnectionFactory, javax.resource.Referenceable, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory aMCF, javax.resource.spi.ConnectionManager aCM)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetBus()Returns the underlyingBusfor this connection factory.ObjectgetConnection(CXFConnectionParam param)Creates a client proxy based on the connection parameter object.ReferencegetReference()voidsetReference(Reference ref)
-
-
-
Method Detail
-
setReference
public void setReference(Reference ref)
- Specified by:
setReferencein interfacejavax.resource.Referenceable
-
getReference
public Reference getReference() throws NamingException
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
getBus
public Object 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
public Object getConnection(CXFConnectionParam param) throws javax.resource.ResourceException
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:
javax.resource.ResourceException
-
-