org.jboss.narayana.blacktie.jatmibroker.xatmi
Interface Session

All Known Implementing Classes:
SessionImpl

public interface Session

A session reference may either be obtained from the tpconnect Connection invocation for a client or retrieved from the TPSVCINFO structure for a service (assuming the service was invoked within the scope of a tpconnect). It is used to send and retrieve data

See Also:
Connection#tpconnect(String, Buffer, int, int), TPSVCINFO.getSession()

Method Summary
 void tpdiscon()
          Close the conversation with the remote service.
 Buffer tprecv(int flags)
          Received the next response in a conversation
 int tpsend(Buffer toSend, int flags)
          Send a buffer to a remote server in a conversation
 

Method Detail

tpsend

int tpsend(Buffer toSend,
           int flags)
           throws ConnectionException
Send a buffer to a remote server in a conversation

Parameters:
toSend - The outbound data
len - The length of the data
flags - The flags to use
Throws:
ConnectionException - If the message cannot be sent.

tprecv

Buffer tprecv(int flags)
              throws ConnectionException,
                     org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
Received the next response in a conversation

Parameters:
flags - The flags to use
Returns:
The next response
Throws:
ConnectionException - If the message cannot be received or the flags are incorrect
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException

tpdiscon

void tpdiscon()
              throws ConnectionException
Close the conversation with the remote service. This will close the session.

Throws:
ConnectionException


Copyright © 2013. All Rights Reserved.