Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Consumer Stops receiving messages from activeMQ after couple of minuts.  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one QueueConsumer.java and a QueueProducer.java

I have produced 10 messages using QueueProducer.java

Now i am consuming one by one message using QueueConsumer.java and putting back the same message in Queue using QueueProducer.java so logically this is end less process.

but after presses for 5 to 10 minuts, my QueueConsumer.java come up with a nullPointerException, as if there is no message in queue. and when i check the ActiveMQ console, I can see the 10 messages on MyQueue.

I am not able to trace the issue. Please help me solving this issue.
 
Jerwin Louise Uy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A stacktrace of the NullPointerException would help.

My guess is that the ConnectionFactory or the Destination was not resolved properly during deployment causing a NullPointerException.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!