Tellier Benoit created JAMES-2332:

             Summary: JMS mail queue should reuse sessions and the like
                 Key: JAMES-2332
             Project: James Server
          Issue Type: Improvement
          Components: Queue
    Affects Versions: 3.0.0, master, 3.0.1
            Reporter: Tellier Benoit

As stated here: 
(section anti-patterns)

Re-use connections / sessions / consumers / producers. Probably the most common 
messaging anti-pattern we see is users who create a new 
connection/session/producer for every message they send or every message they 
consume. This is a poor use of resources. These objects take time to create and 
may involve several network round trips. Always re-use them.

Note that a JMS section needs to be "thread local". Rationals: the rollback 
operations rolls back the entire session.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to