Turning off automatic connection closing
From Shrubbery
By default JBoss will close all JCA connections created during a web request after the response has been rendered. This is really annoying if you are trying to do something like poll a JMS topic subscription from an AJAX request.
In deploy/jbossweb-tomcat55.sar/server.xml there is a valve that automatically closes all JCA connections including JDBC and JMS connections. Just comment it out to take off the training wheels...
<!-- Check for unclosed connections and transaction terminated checks
in servlets/jsps.
Important: The dependency on the CachedConnectionManager
in META-INF/jboss-service.xml must be uncommented, too
-->
<!--
Very annoying - closes JMS connections automatically on every web request.
<Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
transactionManagerObjectName="jboss:service=TransactionManager" />
-->

