Package org.apache.cxf.connector
Interface CXFConnectionFactory
-
- All Known Implementing Classes:
ConnectionFactoryImpl
public interface CXFConnectionFactoryProvides methods to create aConnectionobject that represents a Web service defined from the supplied parameters. This interface is returned from an environment naming context lookup by a J2EE component.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getConnection
Object getConnection(CXFConnectionParam param) throws javax.resource.ResourceException
Creates a client proxy based on the connection parameter object.- Parameters:
param-- 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
-
getBus
Object getBus()
Returns 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();- Returns:
- the connection factory&s
Bus
-
-