Interface CXFConnectionFactory

All Known Implementing Classes:
ConnectionFactoryImpl

public interface CXFConnectionFactory
Provides methods to create a Connection object 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

    Modifier and Type
    Method
    Description
    Returns the underlying
    invalid reference
    Bus
    for this connection factory.
    Creates a client proxy based on the connection parameter object.
  • Method Details

    • getConnection

      Object getConnection(CXFConnectionParam param) throws jakarta.resource.ResourceException
      Creates a client proxy based on the connection parameter object.
      Parameters:
      param -
      Returns:
      A proxy object that implements both the given iface and the Connection interface. It represents the Web service associated with the specified service.
      Throws:
      jakarta.resource.ResourceException
    • getBus

      Object getBus()
      Returns the underlying
      invalid reference
      Bus
      for this connection factory. In some J2EE environments, for example Weblogic, the
      invalid reference
      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
      invalid reference
      Bus
      class is available on the system classpath, then the returned object may be cast to
      invalid reference
      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();
      Returns:
      the connection factory&s
      invalid reference
      Bus