I am writing Java code that sends messages to a JMS queue. I do this using "QueueSender.send ()".
JMS queues are sonicMQ, but this is near the point.
My problem is that sometimes the JMS queue is full and the thread that is trying to send messages to the queue is starving.
Is there a way to find out if the queue is full before sending a message? In this case, I would prefer to print the exception in the log.
By the way, the JMS queue code itself is out of reach. I can only change the client code.
Thank.
source
share