This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic