public interface VistaLinkConnection
extends javax.resource.cci.Connection
J2SE Example:
//Gets the principal that contains the VistaLinkConnection
//Get the VistaLinkConnection
//request and response objects
//The Rpc Context
//The Rpc to call
//Construct the request object
//Execute the Rpc and get the response
//Work with the response ...
// login to server
loginContext.login();
VistaKernelPrincipalImpl myPrincipal = VistaKernelPrincipalImpl.
getKernelPrincipal(loginContext.getSubject());
VistaLinkConnection myConnection = myPrincipal.getAuthenticatedConnection();
RpcRequest vReq = null;
RpcResponse vResp = null;
String rpcContext = "XOBV VISTALINK TESTER";
String rpcName = "XOBV TEST PING";
vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName);
vResp = myConnection.executeRPC(vReq);
Modifier and Type | Method and Description |
---|---|
gov.va.med.vistalink.adapter.record.VistaLinkResponseVO |
executeInteraction(VistaLinkRequestVO requestVO,
gov.va.med.vistalink.adapter.record.VistaLinkResponseFactory responseFactory)
Executes an interaction with M.
|
RpcResponse |
executeRPC(RpcRequest request)
Executes an interaction with M using the RpcResponseFactory to construct
a response.
|
VistaLinkServerInfo |
getConnectionInfo()
Returns connection information about the host.
|
int |
getTimeOut()
Returns current connection time out value
|
void |
setTimeOut(int timeOut)
Enables application to set time out for read operations on connections.
|
gov.va.med.vistalink.adapter.record.VistaLinkResponseVO executeInteraction(VistaLinkRequestVO requestVO, gov.va.med.vistalink.adapter.record.VistaLinkResponseFactory responseFactory) throws VistaLinkFaultException, FoundationsException
requestVO
- -
the request being maderesponseFactory
- -
the factory which will construct the responseVistaLinkFaultException
- -
thrown if an error occurred on M while processing the requestFoundationsException
- -
thrown if an internal adapter exception has occurredRpcResponse executeRPC(RpcRequest request) throws VistaLinkFaultException, FoundationsException
request
- -
The request being madeVistaLinkFaultException
- -
thrown if an error occurred on M while processing the requestFoundationsException
- -
thrown if an internal adapter exception has occurredVistaLinkServerInfo getConnectionInfo()
int getTimeOut()
void setTimeOut(int timeOut)
timeOut
- time out value to set in milli-seconds. This timeout value is
compared to the default value usually used for the connection.
The greater of the two values will be used.VistALink v1.6a