/** * @see ca.uhn.hl7v2.protocol.JMSDestination#connect() */ public void connect() throws JMSException { boolean transacted = false; int ackMode = Session.AUTO_ACKNOWLEDGE; disconnect(); mySendingSession = myConnection.createQueueSession(transacted, ackMode); mySender = mySendingSession.createSender(myQueue); myReceivingSession = myConnection.createQueueSession(transacted, ackMode); myReceiver = myReceivingSession.createReceiver(myQueue); myIsConnected = true; }
/** * @see ca.uhn.hl7v2.protocol.JMSDestination#connect() */ public void connect() throws JMSException { boolean transacted = false; int ackMode = Session.AUTO_ACKNOWLEDGE; disconnect(); mySendingSession = myConnection.createQueueSession(transacted, ackMode); mySender = mySendingSession.createSender(myQueue); myReceivingSession = myConnection.createQueueSession(transacted, ackMode); myReceiver = myReceivingSession.createReceiver(myQueue); myIsConnected = true; }