[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: caching the initial session created

timfox do-not-reply at jboss.com
Fri Mar 20 07:01:36 EDT 2009


"ataylor" wrote : Currently when we create a new jms connection we only actually create a session if we are authenticating and then we close it once authentication has taken place.
  | 
  | I'm changing this so that firstly we always authorize and secondly caching the initial session and reusing it for the first actual session created. The only issue is that the initial core session is created with xa, autoCommitSends, autoCommitAcks and preAcknowledge set to false and ackBatchSize set to 0. O though the best thing was to add an extra method to core session to allow these values to be reset.

Not sure that is a good idea. You'd have to change the values on the server too, that means adding a new wire format message - pretty ugly.

I'd say just cache the special session locally in the jms connection and only use it for initial authorisation and delting temp queeus etc.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219795#4219795

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219795



More information about the jboss-dev-forums mailing list