[Jboss-cvs] JBossAS SVN: r56206 - branches/JBoss_4_0_3_SP1_JBAS_3511/server/src/main/org/jboss/jms/asf
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Aug 23 18:47:53 EDT 2006
Author: weston.price at jboss.com
Date: 2006-08-23 18:47:53 -0400 (Wed, 23 Aug 2006)
New Revision: 56206
Modified:
branches/JBoss_4_0_3_SP1_JBAS_3511/server/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java
Log:
[JBAS-3511] Improvements for ASF integration, pool management, idle session collection
as and dynamic allocation.
Modified: branches/JBoss_4_0_3_SP1_JBAS_3511/server/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java
===================================================================
--- branches/JBoss_4_0_3_SP1_JBAS_3511/server/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java 2006-08-23 22:47:42 UTC (rev 56205)
+++ branches/JBoss_4_0_3_SP1_JBAS_3511/server/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java 2006-08-23 22:47:53 UTC (rev 56206)
@@ -22,6 +22,7 @@
*
* @author <a href="mailto:peter.antman at tim.se">Peter Antman</a> .
* @author <a href="mailto:hiram.chirino at jboss.org">Hiram Chirino</a> .
+ * @author <a href="mailto:weston.price at jboss.com>Weston Price</a>
* @version $Revision$
*/
public class StdServerSessionPoolFactory
@@ -61,15 +62,8 @@
public javax.jms.ServerSessionPool getServerSessionPool(Destination destination, Connection con, int minSession, int maxSession, long keepAlive, boolean isTransacted, int ack, boolean useLocalTX, boolean lazyInit, boolean recycle, long idleTimeout, javax.jms.MessageListener listener) throws javax.jms.JMSException
{
- ServerSessionPoolParams params = new ServerSessionPoolParams();
- params.setMinSessionCount(minSession);
- params.setMaxSessionCount(maxSession);
- params.setKeepAlive(keepAlive);
- params.setLazyInitialization(lazyInit);
- params.setRecycleIdle(recycle);
- params.setIdleTimeOutMinutes(idleTimeout);
-
- ServerSessionPool pool = (ServerSessionPool)new StdServerSessionPool(destination, con, isTransacted, ack, useLocalTX, listener, minSession, maxSession, keepAlive, xidFactory);
+
+ ServerSessionPool pool = (ServerSessionPool)new StdServerSessionPool(destination, con, isTransacted, ack, useLocalTX, listener, minSession, maxSession, keepAlive, lazyInit, recycle, idleTimeout, xidFactory);
return pool;
}
More information about the jboss-cvs-commits
mailing list