Looks like what your code does is connect, the disconnect. Is there some way you can
avoid connecting and disconnecting so quickly? You can have one connection per
application and create sessions per Thread even if multi-threaded.
Use UIL2ConnectionFactory (see the FAQ) not UILConnectionFactory.
You can also check out the source in CVS and modify settings yourself. Here are the
settings I'm seeing:
./src/main/org/jboss/mq/il/uil2/SocketManager.java
pool = new PooledExecutor(5);
pool.setMinimumPoolSize(1);
pool.setKeepAliveTime(1000 * 60);
pool.runWhenBlocked();
These values are hard coded, you may modify the keep alive time and build it yourself.
Or, better, add a configuration via JMX to the connection factory and submit a patch.
./src/main/org/jboss/mq/il/uil2/UILServerILService.java
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827516#3827516">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827516>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user