1845184618471848184918501851185218531854185518561857
{ checkXA(); try { SessionXASetTimeoutResponseMessage response = (SessionXASetTimeoutResponseMessage) channel.sendBlocking(new SessionXASetTimeoutMessage(seconds), PacketImpl.SESS_XA_SET_TIMEOUT_RESP); return response.isOK(); } catch (Throwable t) { // This could occur if the TM interrupts the thread XAException xaException = new XAException(XAException.XAER_RMERR);
1418141914201421142214231424142514261427142814291430
{ checkXA(); try { SessionXASetTimeoutResponseMessage response = (SessionXASetTimeoutResponseMessage)channel.sendBlocking(new SessionXASetTimeoutMessage(seconds)); return response.isOK(); } catch (HornetQException e) { // This should never occur throw new XAException(XAException.XAER_RMERR);
327328329330331332333334335336337
packet = new SessionXASetTimeoutMessage(); break; } case SESS_XA_SET_TIMEOUT_RESP: { packet = new SessionXASetTimeoutResponseMessage(); break; } case SESS_XA_GET_TIMEOUT: { packet = new PacketImpl(PacketImpl.SESS_XA_GET_TIMEOUT);
1601160216031604160516061607160816091610161116121613
343344345346347348349350351352353
1503150415051506150715081509151015111512151315141515
381382383384385386387388389390391
case SESS_XA_SET_TIMEOUT: { requiresResponse = true; SessionXASetTimeoutMessage message = (SessionXASetTimeoutMessage)packet; session.xaSetTimeout(message.getTimeoutSeconds()); response = new SessionXASetTimeoutResponseMessage(true); break; } case SESS_START: { session.start();
337338339340341342343344345346347
1772177317741775177617771778177917801781178217831784
{ checkXA(); try { SessionXASetTimeoutResponseMessage response = (SessionXASetTimeoutResponseMessage)channel.sendBlocking(new SessionXASetTimeoutMessage(seconds), PacketImpl.SESS_XA_SET_TIMEOUT_RESP); return response.isOK(); } catch (Throwable t) { // This could occur if the TM interrupts the thread XAException xaException = new XAException(XAException.XAER_RMERR);