protected void initializeInboundDestinationBridgesOutboundSide(QueueConnection connection) throws JMSException { if (inboundQueueBridges != null) { QueueSession outboundSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); for (InboundQueueBridge bridge : inboundQueueBridges) { String queueName = bridge.getInboundQueueName(); Queue foreignQueue = createForeignQueue(outboundSession, queueName); bridge.setConsumer(null); bridge.setConsumerQueue(foreignQueue); bridge.setConsumerConnection(connection); bridge.setJmsConnector(this); addInboundBridge(bridge); } outboundSession.close(); } }
Queue replyToConsumerQueue = replyToConsumerSession.createTemporaryQueue(); replyToConsumerSession.close(); bridge.setConsumerQueue(replyToConsumerQueue); bridge.setProducerQueue(replyToProducerQueue); bridge.setProducerConnection((QueueConnection)replyToProducerConnection);
protected void initializeInboundDestinationBridgesOutboundSide(QueueConnection connection) throws JMSException { if (inboundQueueBridges != null) { QueueSession outboundSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); for (InboundQueueBridge bridge : inboundQueueBridges) { String queueName = bridge.getInboundQueueName(); Queue foreignQueue = createForeignQueue(outboundSession, queueName); bridge.setConsumer(null); bridge.setConsumerQueue(foreignQueue); bridge.setConsumerConnection(connection); bridge.setJmsConnector(this); addInboundBridge(bridge); } outboundSession.close(); } }
protected void initializeInboundDestinationBridgesOutboundSide(QueueConnection connection) throws JMSException { if (inboundQueueBridges != null) { QueueSession outboundSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); for (InboundQueueBridge bridge : inboundQueueBridges) { String queueName = bridge.getInboundQueueName(); Queue foreignQueue = createForeignQueue(outboundSession, queueName); bridge.setConsumer(null); bridge.setConsumerQueue(foreignQueue); bridge.setConsumerConnection(connection); bridge.setJmsConnector(this); addInboundBridge(bridge); } outboundSession.close(); } }
protected void initializeInboundDestinationBridgesOutboundSide(QueueConnection connection) throws JMSException { if (inboundQueueBridges != null) { QueueSession outboundSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); for (InboundQueueBridge bridge : inboundQueueBridges) { String queueName = bridge.getInboundQueueName(); Queue foreignQueue = createForeignQueue(outboundSession, queueName); bridge.setConsumer(null); bridge.setConsumerQueue(foreignQueue); bridge.setConsumerConnection(connection); bridge.setJmsConnector(this); addInboundBridge(bridge); } outboundSession.close(); } }
Queue replyToConsumerQueue = replyToConsumerSession.createTemporaryQueue(); replyToConsumerSession.close(); bridge.setConsumerQueue(replyToConsumerQueue); bridge.setProducerQueue(replyToProducerQueue); bridge.setProducerConnection((QueueConnection)replyToProducerConnection);
Queue replyToConsumerQueue = replyToConsumerSession.createTemporaryQueue(); replyToConsumerSession.close(); bridge.setConsumerQueue(replyToConsumerQueue); bridge.setProducerQueue(replyToProducerQueue); bridge.setProducerConnection((QueueConnection)replyToProducerConnection);
Queue replyToConsumerQueue = replyToConsumerSession.createTemporaryQueue(); replyToConsumerSession.close(); bridge.setConsumerQueue(replyToConsumerQueue); bridge.setProducerQueue(replyToProducerQueue); bridge.setProducerConnection((QueueConnection)replyToProducerConnection);
Queue replyToConsumerQueue = replyToConsumerSession.createTemporaryQueue(); replyToConsumerSession.close(); bridge.setConsumerQueue(replyToConsumerQueue); bridge.setProducerQueue(replyToProducerQueue); bridge.setProducerConnection((QueueConnection)replyToProducerConnection);
protected void initializeInboundQueueBridges() throws JMSException { if (inboundQueueBridges != null) { QueueSession outboundSession = outboundQueueConnection .createQueueSession(false, Session.AUTO_ACKNOWLEDGE); QueueSession localSession = localQueueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); for (int i = 0; i < inboundQueueBridges.length; i++) { InboundQueueBridge bridge = inboundQueueBridges[i]; String localQueueName = bridge.getLocalQueueName(); Queue activemqQueue = createActiveMQQueue(localSession, localQueueName); String queueName = bridge.getInboundQueueName(); Queue foreignQueue = createForeignQueue(outboundSession, queueName); bridge.setConsumerQueue(foreignQueue); bridge.setProducerQueue(activemqQueue); bridge.setProducerConnection(localQueueConnection); bridge.setConsumerConnection(outboundQueueConnection); if (bridge.getJmsMessageConvertor() == null) { bridge.setJmsMessageConvertor(getInboundMessageConvertor()); } bridge.setJmsConnector(this); addInboundBridge(bridge); } outboundSession.close(); localSession.close(); } }