title: Multithreaded JMS application
body: <p>I am working on a multithreaded JMS receiver and publisher code.
  XML message is received from a Queue, stored procedures(takes 70 sec to execute) are called and response is send to Topic within 90 sec.
  I need to handle a condition when broker is down.
  i.e.  a condition in which messages are received from Queue and are being processed in java, in the mean time both Queue and Topic will be down. Then how to handle those messages which are not on queue and not send to topic but are in java memory?
  Different options available:</p>
  
  <p>1.To use CLIENT_ACKNOWLEDGE 
  2.To separate publisher code from receiver code. 
  3.To have error utility which will take messages from log and process them and send to Topic(least preferred)</p>
  
  <p>Please suggest me the right option </p>