Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can't receive hornetq jms message

Prateek Kumar Singh
Ranch Hand
Posts: 30
Eclipse IDE Hibernate Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!