Thursday, September 07, 2006

JMS - Best Practices

  1. Start producer connection after you start consumer.
  2. Use concurrent processing of messages.
  3. Close the Connection when finished.
  4. Choose either DUPS_OK_ACKNOWLEDGE or AUTO_ACKNOWLEDGE rather than CLIENT_ACKNOWLEDGE.
  5. Control transactions by using separate transactional session for transactional messages and non-transactional session for non-transactional messages.
  6. Close session object when finished.
  7. Make Destination with less capacity and send messages accordingly.
  8. Set high Redelivery delay time to reduce network traffic.
  9. Set less Redelivery limit for reducing number of message hits.
  10. Choose non-durable messages wherever appropriate to avoid persistence overhead.
  11. Set optimal message age (TimeToLive value).
  12. Receive messages asynchronously.
  13. Close Producer/Consumer when finished.
  14. Choose message type carefully to avoid unnecessary memory overhead.
  15. Use 'transient' key word for variables of ObjectMessage which need not be transferred.

Get more information

Tags: jms, concurrent processing, transactional messages, message, transient, asynchronous

Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com

Comments on "JMS - Best Practices"