1. JMS push model asynchronous messaging coderanch.com |
2. JMS publisher-subscriber model scenario coderanch.comHi, I have a requirement , which goes like this : 1. Publisher sends to the topic , xml messages //Lookup JMS topics that will be published to Topic newTopic = (Topic)context.lookup("xyz.newTopic"); TopicConnection connection = (TopicConnection) connectionFactory.createConnection(); final TopicSession session=connection.createTopicSession(true, 0); TopicPublisher topicPublisher = session.createPublisher(newTopic ); NotificationMessageFactory messageFactory = new NotificationMessageFactory(); NotificationMessage message = messageFactory.create(newTopic .getTopicName(), "trackingRefTest", null); message.addPage("abcd-34df-3423-fdff-4564"); message.addPage("fffd-ffdc-123fc-abfd-ee34"); //publish ... |