Package org.apache.cxf.jca.outbound
Interface CXFConnection
-
public interface CXFConnectionA CXFConnection is obtains fromCXFConnectionFactory. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the connection handle.<T> TgetService(Class<T> serviceClass)Retrieves a service object to invoke.
-
-
-
Method Detail
-
getService
<T> T getService(Class<T> serviceClass) throws 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 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
-
-