Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.jca.outbound
Interface CXFConnection

    public interface CXFConnection

A CXFConnection is obtains from `CXFConnectionFactory`. It provides access to a CXF web service for client to invoke. The client should close the CxfConnection when the web service is no longer needed.

Method Summary
`void` | `close()` Closes the connection handle.
`
`<T> T`
` | `getService(java.lang.Class<T> serviceClass)` Retrieves a service object to invoke.

Method Detail

### getService

    <T> T getService(java.lang.Class<T> serviceClass)
                 throws java.lang.Exception

  Retrieves a service object to invoke. The serviceInterface class must match the serviceClass in the CXFConnectionSpec that is used to obtain this CXFConnection. Application can continue to use the service object after the the connection has been closed by calling `close()`.

  Type Parameters:
    `T` -
  Parameters:
    `serviceClass` -
  Returns:
    service object
  Throws:
    `java.lang.Exception`

### close

    void close()
               throws java.lang.Exception

  Closes the connection handle. A caller should not use a closed connection.

  Throws:
    `java.lang.Exception` - if an error occurs during close.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF