Package 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
Modifier and TypeMethodDescriptionvoidclose()Closes the connection handle.<T> TgetService(Class<T> serviceClass) Retrieves a service object to invoke.
-
Method Details
-
getService
Retrieves a service object to invoke. The serviceInterface class must match the serviceClass in the CXFConnectionSpec that is used to obtain this CXFConnection. Application should not continue to use the service object after the the connection has been closed by callingclose().- Type Parameters:
T-- Parameters:
serviceClass-- Returns:
- service object
- Throws:
Exception
-
close
Closes the connection handle. A caller should not use a closed connection.- Throws:
Exception- if an error occurs during close.
-