Search in sources :

Example 11 with XidImpl

use of com.swiftmq.jms.XidImpl in project swiftmq-client by iitsoftware.

the class XAResCommitRequest method readContent.

public void readContent(DataInput in) throws IOException {
    super.readContent(in);
    xid = new XidImpl();
    xid.readContent(in);
    onePhase = in.readBoolean();
}
Also used : XidImpl(com.swiftmq.jms.XidImpl)

Example 12 with XidImpl

use of com.swiftmq.jms.XidImpl in project swiftmq-client by iitsoftware.

the class XAResEndRequest method readContent.

public void readContent(DataInput in) throws IOException {
    super.readContent(in);
    xid = new XidImpl();
    xid.readContent(in);
    flags = in.readInt();
    byte set = in.readByte();
    if (set == 0) {
        messages = null;
    } else {
        int len = in.readInt();
        messages = new Object[len];
        for (int i = 0; i < len; i++) {
            int msglen = in.readInt();
            byte[] arr = new byte[msglen];
            in.readFully(arr);
            messages[i] = arr;
        }
    }
}
Also used : XidImpl(com.swiftmq.jms.XidImpl)

Example 13 with XidImpl

use of com.swiftmq.jms.XidImpl in project swiftmq-client by iitsoftware.

the class XAResPrepareRequest method readContent.

public void readContent(DataInput in) throws IOException {
    super.readContent(in);
    xid = new XidImpl();
    xid.readContent(in);
    byte set = in.readByte();
    if (set == 0) {
        messages = null;
    } else {
        int len = in.readInt();
        messages = new Object[len];
        for (int i = 0; i < len; i++) {
            int msglen = in.readInt();
            byte[] arr = new byte[msglen];
            in.readFully(arr);
            messages[i] = arr;
        }
    }
}
Also used : XidImpl(com.swiftmq.jms.XidImpl)

Example 14 with XidImpl

use of com.swiftmq.jms.XidImpl in project swiftmq-client by iitsoftware.

the class XAResRollbackRequest method readContent.

public void readContent(DataInput in) throws IOException {
    super.readContent(in);
    xid = new XidImpl();
    xid.readContent(in);
}
Also used : XidImpl(com.swiftmq.jms.XidImpl)

Example 15 with XidImpl

use of com.swiftmq.jms.XidImpl in project swiftmq-client by iitsoftware.

the class XAResPrepareRequest method readContent.

public void readContent(DataInput in) throws IOException {
    super.readContent(in);
    xid = new XidImpl();
    xid.readContent(in);
}
Also used : XidImpl(com.swiftmq.jms.XidImpl)

Aggregations

XidImpl (com.swiftmq.jms.XidImpl)85 XAException (javax.transaction.xa.XAException)37 JMSException (javax.jms.JMSException)28 ValidationException (com.swiftmq.tools.requestreply.ValidationException)22 Request (com.swiftmq.tools.requestreply.Request)16 List (java.util.List)12 ArrayList (java.util.ArrayList)10 XAContextException (com.swiftmq.swiftlet.xa.XAContextException)9 MessageImpl (com.swiftmq.jms.MessageImpl)6 XAContext (com.swiftmq.swiftlet.xa.XAContext)5 QueuePullTransaction (com.swiftmq.swiftlet.queue.QueuePullTransaction)4 QueueReceiver (com.swiftmq.swiftlet.queue.QueueReceiver)4 QueueSender (com.swiftmq.swiftlet.queue.QueueSender)4 BytesMessageImpl (com.swiftmq.jms.BytesMessageImpl)2 QueuePushTransaction (com.swiftmq.swiftlet.queue.QueuePushTransaction)2 Comparator (java.util.Comparator)2 CommitRequest (com.swiftmq.impl.routing.single.smqpr.v400.CommitRequest)1 CommitRequest (com.swiftmq.impl.routing.single.smqpr.v942.CommitRequest)1 QueueImpl (com.swiftmq.jms.QueueImpl)1 Entity (com.swiftmq.mgmt.Entity)1