This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes can't receive hornetq  jms message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "can Watch "can New topic

can't receive hornetq jms message

Prateek Kumar Singh

Joined: Jan 21, 2011
Posts: 29


i'm using hornetq with Tomcat 7.0 JMS my message sint successfully but could not recive it.

session.createQueue(queueName, queueName,true);
ClientConsumer consumer = session.createConsumer("queue1");

System.out.println("ClientSession started!");
ClientMessage cmessage=null;
while (true) {//inner loop
System.out.println("in loop:"+consumer);
cmessage = consumer.receive(); // problem is here


//new Consumer().consumerMsg();
pw.print("<h1>Message receive complete</h1>");

can anybody give answer?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: can't receive hornetq jms message
It's not a secret anymore!