title: Sending a message to a full JMS queue
body: <p>I am writing a Java code that sends messages to a JMS queue.
  I am doing this by using "QueueSender.send()".</p>
  
  <p>The JMS queue itsels is sonicMQ but that's beside the point.</p>
  
  <p>My problem is that sometimes the JMS queue is full and the thread that tries to send messages to the queue is starved.</p>
  
  <p>Is there a way for me to know if the queue is full before sending the message? In this case I would prefer to print an exception to the log.</p>
  
  <p>By the way, the JMS queue code itself is out of my reach. I can only change only the client code.</p>
  
  <p>Thank you.</p>