public class ConnectionFactoryImpl extends Object implements CXFConnectionFactory, javax.resource.Referenceable, Serializable
| Constructor and Description |
|---|
ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory aMCF,
javax.resource.spi.ConnectionManager aCM) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBus()
Returns the underlying
Bus for this connection factory. |
Object |
getConnection(CXFConnectionParam param)
Creates a client proxy based on the connection parameter object.
|
Reference |
getReference() |
void |
setReference(Reference ref) |
public ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory aMCF,
javax.resource.spi.ConnectionManager aCM)
public void setReference(Reference ref)
public Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic Object getBus()
CXFConnectionFactoryBus for this connection factory. In some
J2EE environments, for example Weblogic, the Bus and dependent
classes are not available to the J2EE application. In this case the CXF
runtime jar:
cxf-install-dir/cxf/lib/cxf-rt-version.jar should
be added to the classpath of the application server. Once, the
Bus class is available on the system classpath, then the returned
object may be cast to Bus. In other environments, this cast
should be safe without having to modify the classpath
org.apache.cxf.Bus = (org.apache.cxf.Bus)connectionFactory.getBus();
getBus in interface CXFConnectionFactoryBuspublic Object getConnection(CXFConnectionParam param) throws javax.resource.ResourceException
CXFConnectionFactorygetConnection in interface CXFConnectionFactoryiface
and the Connection interface. It represents the Web
service associated with the specified service.javax.resource.ResourceExceptionApache CXF