|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an application level connection handle that is used by a component to access an EIS instance.
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);
Method Summary | |
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. |
Methods inherited from interface javax.resource.cci.Connection |
close, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo |
Method Detail |
public 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 response
VistaLinkFaultException
- -
thrown if an error occurred on M while processing the request
FoundationsException
- -
thrown if an internal adapter exception has occurredThis constructor, method or field is not for public use. |
public RpcResponse executeRPC(RpcRequest request) throws VistaLinkFaultException, FoundationsException
request
- -
The request being made
VistaLinkFaultException
- -
thrown if an error occurred on M while processing the request
FoundationsException
- -
thrown if an internal adapter exception has occurredpublic VistaLinkServerInfo getConnectionInfo()
public int getTimeOut()
FoundationsException
- -
thrown if an internal adapter exception has occurred and as a
result time out cannot be retrieved from connectionpublic 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.
FoundationsException
- -
thrown if an internal adapter exception has occurred and as a
result the connection time out cannot be set
|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |