[jboss-dev-forums] [Design of JCA on JBoss] - Re: StdServerSession/StdServerSessionPool -- JmsServerSessio

weston.price@jboss.com do-not-reply at jboss.com
Fri Sep 8 08:15:25 EDT 2006


Also:

Driven by client request the following changes have been made the the StdServerSessionSession/Pool in the ASF implementation: 

1) 3 new elements have been added to jboss.xml


  |  <LazyInitialization></LazyInitialization>
  |  <RecycleIdleSessions></RecycleIdleSessions>
  |  <IdleTimeOutMinutes></IdleTimeOutMinutes>
  |  
  | 

LazyInitialization being set to true requires that the StdServerSessionPool be lazily constructed with only the minimum pool size being created on startup. 

RecycleIdleSesssion being set to true creates a JMS Reaper that functions in the same manner as our IdleRemover: removes idle JMS Sessions a configured interval (IdleTimeoutMinutes)

As a result, the StdServerSessionPool functions in a similar manner to the InternalManagedConnection pool. A semaphore has be implemented to managed acquiring session. Idle sessions are recycled with a PoolFiller maintaining the minimum pool size in the case that the session count falls below the minimum. 

 THis stuff is on a different branch at this point but my plan is to carry these features over to the JMS Inflow stuff as time permits. 



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

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



More information about the jboss-dev-forums mailing list