srchen1987 opened a new pull request #2854: the 2.6.x clustered-grouping demo have BUG URL: https://github.com/apache/activemq-artemis/pull/2854 `` Connection connection0 = null; Connection connection1 = null; Connection connection2 = null; try { // Step 1. We will instantiate the queue object directly on this example // This could be done through JNDI or JMSession.createQueue Queue queue = ActiveMQJMSClient.createQueue("exampleQueue"); // Step 2. create a connection factory towards server 0. ConnectionFactory cf0 = new ActiveMQConnectionFactory("tcp://localhost:61616"); // Step 3. create a connection factory towards server 1. ConnectionFactory cf1 = new ActiveMQConnectionFactory("tcp://localhost:61617"); // Step 4. create a connection factory towards server 2. ConnectionFactory cf2 = new ActiveMQConnectionFactory("tcp://localhost:61618"); // Step 5. We create a JMS Connection connection0 which is a connection to server 0 connection0 = cf0.createConnection(); // Step 6. We create a JMS Connection connection1 which is a connection to server 1 connection1 = cf1.createConnection(); // Step 7. We create a JMS Connection connection2 which is a connection to server 2 connection2 = cf2.createConnection(); // Step 8. We create a JMS Session on server 0 Session session0 = connection0.createSession(false, Session.AUTO_ACKNOWLEDGE); // Step 9. We create a JMS Session on server 1 Session session1 = connection1.createSession(false, Session.AUTO_ACKNOWLEDGE); // Step 10. We create a JMS Session on server 2 Session session2 = connection1.createSession(false, Session.AUTO_ACKNOWLEDGE); ### Step 10 should use connection2
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
