1.

How Do You Optimize Java Message Service (jms)?

Answer»

• Start producer CONNECTION after you start consumer.
USE concurrent processing of MESSAGES.
• Close the Connection when finished.
CHOOSE either DUPS_OK_ACKNOWLEDGE or AUTO_ACKNOWLEDGE rather than CLIENT_ACKNOWLEDGE.
CONTROL transactions by using separate transactional session for transactional messages and non-transactional session for non-transactional messages.
• Close session object when finished.

• Start producer connection after you start consumer.
• Use concurrent processing of messages.
• Close the Connection when finished.
• Choose either DUPS_OK_ACKNOWLEDGE or AUTO_ACKNOWLEDGE rather than CLIENT_ACKNOWLEDGE.
• Control transactions by using separate transactional session for transactional messages and non-transactional session for non-transactional messages.
• Close session object when finished.



Discussion

No Comment Found