Search in sources :

Example 6 with Buffer

use of org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer in project narayana by jbosstm.

the class TPSendTPSendOnlyService method tpservice.

public Response tpservice(TPSVCINFO svcinfo) throws ConnectionException, ConfigurationException {
    log.info("testtpsend_tpsendonly_service");
    int result = svcinfo.getSession().tpsend(svcinfo.getBuffer(), Connection.TPRECVONLY);
    try {
        Buffer tprecv = svcinfo.getSession().tprecv(0);
    } catch (ConnectionException e) {
        if (e.getTperrno() != Connection.TPEEVENT) {
            log.error("ConnectionException: ", e);
            throw e;
        }
    }
    return null;
}
Also used : Buffer(org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer) ConnectionException(org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionException)

Aggregations

Buffer (org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer)6 ConnectionException (org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionException)5 ResponseException (org.jboss.narayana.blacktie.jatmibroker.xatmi.ResponseException)3 Response (org.jboss.narayana.blacktie.jatmibroker.xatmi.Response)2 Constructor (java.lang.reflect.Constructor)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 CodecFactory (org.jboss.narayana.blacktie.jatmibroker.codec.CodecFactory)1 ConfigurationException (org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException)1 Codec (org.jboss.narayana.blacktie.jatmibroker.core.transport.Codec)1 Message (org.jboss.narayana.blacktie.jatmibroker.core.transport.Message)1 Receiver (org.jboss.narayana.blacktie.jatmibroker.core.transport.Receiver)1 TXINFO (org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO)1 Session (org.jboss.narayana.blacktie.jatmibroker.xatmi.Session)1 X_OCTET (org.jboss.narayana.blacktie.jatmibroker.xatmi.X_OCTET)1