Session sessConsume = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer sub1 = sessConsume.createDurableSubscriber(topic, "sub1", null, false);
MessageConsumer sub2 = sessConsume.createDurableSubscriber(topic, "sub2", null, false);
MessageConsumer sub3 = sessConsume.createDurableSubscriber(topic, "sub3", null, false);
Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer prod = sessSend.createProducer(topic);
prod.setDeliveryMode(DeliveryMode.PERSISTENT);