• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HornetQ message processing questions

 
Sireesh Ganagam
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello experts,


I have a scenario where 500 messages are pending in HornetQ messaging queue and not delivered. My application is hosted on java/JBoss/linux and oracle

what is the best way of cleaning pending messages since those messages are already loaded in memory?

Since there are lot of messages in memory and each message is trying to get connection from oracle failing with out of connections errors ? how to handle this scenario?

if at all these pending messages are needed for external system, I can't delete pending the messages .. but how can i deal here avoiding delete and out of connections errors.

Appreciate your inputs
 
Henry Wong
author
Marshal
Pie
Posts: 22094
88
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If you are getting connection issues, I would speculate that you are not configured to allow enough connections. Perhaps the OS isn't configured to allow enough FDs, or the messaging server isn't configured with enough? You will need to fix the issue with the OS/server, and try to avoid working around it programmatically.

But, if you want to try regardless, you can try ...

1. Creating a consumer to consume all the unwanted messages from the queue.
2. Have the producer(s) assign a expiration to the messages, so that they are automatically deleted if the consumers are not available..
3. Manually queue browse the queues -- and deleting the unwanted messages.

Henry

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic