|
VLJ Iteration II, v. 1.0.0.193 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.va.med.foundations.adapter.cci.VistaLinkConnection
This implementation class represents an application level connection
handle that is used by a component to access an EIS instance.
J2SE Example
// create the callback handler CallbackHandlerSwing cbhSwing = new CallbackHandlerSwing(myFrame); // create the LoginContext loginContext = new LoginContext("Production", cbhSwing); // login to server loginContext.login(); //Gets the principal that contains the VistaLinkConnection VistaKernelPrincipalImpl myPrincipal = VistaKernelPrincipalImpl. getKernelPrincipal(loginContext.getSubject()); //Get the VistaLinkConnection VistaLinkConnection myConnection = myPrincipal.getAuthenticatedConnection(); //request and response objects RpcRequest vReq = null; RpcResponse vResp = null; //The Rpc Context String rpcContext = "XOBV VISTALINK TESTER"; //The Rpc to call String rpcName = "XOBV TEST PING"; //Construct the request object vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName); //Execute the Rpc and get the response vResp = myConnection.executeRPC(vReq); //Work with the response ...
Constructor Summary | |
VistaLinkConnection(VistaLinkManagedConnection mc)
VistaLinkConnection Constructor. |
Method Summary | |
void |
close()
Method close Closes this connection handle Informs the managed connection that this handle is closed |
Interaction |
createInteraction()
Empty method. |
VistaLinkResponseVO |
executeInteraction(VistaLinkRequestVO requestVO,
VistaLinkResponseFactory responseFactory)
Method executeInteraction. |
gov.va.med.foundations.rpc.RpcResponse |
executeRPC(gov.va.med.foundations.rpc.RpcRequest request)
Method executeRPC. |
gov.va.med.foundations.adapter.cci.VistaLinkServerInfo |
getConnectionInfo()
Method getConnectionInfo. |
LocalTransaction |
getLocalTransaction()
Empty method. |
VistaLinkManagedConnection |
getManagedConnection()
Method getManagedConnection. |
ConnectionMetaData |
getMetaData()
Method getMetaData Gets the meta-information on the underlying EIS instance via this connection |
ResultSetInfo |
getResultSetInfo()
Empty method. |
void |
setManagedConnection(VistaLinkManagedConnection mc)
Method setManagedConnection. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VistaLinkConnection(VistaLinkManagedConnection mc)
mc
- Method Detail |
public void close() throws ResourceException
ResourceException
public VistaLinkResponseVO executeInteraction(VistaLinkRequestVO requestVO, 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 occurredpublic gov.va.med.foundations.rpc.RpcResponse executeRPC(gov.va.med.foundations.rpc.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 ConnectionMetaData getMetaData() throws ResourceException
ResourceException
public gov.va.med.foundations.adapter.cci.VistaLinkServerInfo getConnectionInfo()
public VistaLinkManagedConnection getManagedConnection() throws FoundationsException
FoundationsException
public void setManagedConnection(VistaLinkManagedConnection mc)
mc
- public Interaction createInteraction() throws ResourceException
ResourceException
javax.resource.cci.Connection#createInteraction()
public LocalTransaction getLocalTransaction() throws ResourceException
ResourceException
javax.resource.cci.Connection#getLocalTransaction()
public ResultSetInfo getResultSetInfo() throws ResourceException
ResourceException
javax.resource.cci.Connection#getResultSetInfo()
|
VLJ Iteration II, v. 1.0.0.193 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |