[jboss-cvs] JBossAS SVN: r69715 - trunk/testsuite/src/resources/naming/restart.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 7 20:59:06 EST 2008
Author: bstansberry at jboss.com
Date: 2008-02-07 20:59:05 -0500 (Thu, 07 Feb 2008)
New Revision: 69715
Modified:
trunk/testsuite/src/resources/naming/restart/naming-restart-beans.xml
Log:
Use our own thread pool
Modified: trunk/testsuite/src/resources/naming/restart/naming-restart-beans.xml
===================================================================
--- trunk/testsuite/src/resources/naming/restart/naming-restart-beans.xml 2008-02-07 23:56:08 UTC (rev 69714)
+++ trunk/testsuite/src/resources/naming/restart/naming-restart-beans.xml 2008-02-08 01:59:05 UTC (rev 69715)
@@ -1,7 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
+
+ <!-- Don't inject the real AS thread pool, as it has a classloader
+ leak and we don't want to leak this classloader to it
+ -->
+ <bean name="RestartNamingThreadPool" class="org.jboss.util.threadpool.BasicThreadPool">
+ <constructor>
+ <parameter>RestartNamingThreadPool</parameter>
+ <parameter>
+ <bean name="RestartNamingThreadGroup" class="java.lang.ThreadGroup">
+ <constructor>
+ <parameter>RestartNamingThreadGroup</parameter>
+ </constructor>
+ </bean>
+ </parameter>
+ </constructor>
+ </bean>
+
<bean name="RestartNamingBean" class="org.jnp.server.NamingBeanImpl">
<!-- IMPORTANT Ensure we use our own NamingServer and don't screw up the
@@ -22,7 +38,7 @@
<property name="bindAddress">${jboss.bind.address}</property>
<property name="rmiPort">0</property>
<property name="rmiBindAddress">${jboss.bind.address}</property>
- <property name="lookupPool"><inject bean="jboss.system:service=ThreadPool"/></property>
+ <property name="lookupPool"><inject bean="RestartNamingThreadPool"/></property>
<property name="naming"><inject bean="RestartNamingBean"/></property>
</bean>
@@ -44,9 +60,7 @@
<property name="rmiPort">0</property>
<!-- Accept backlog of the bootstrap socket -->
<property name="backlog">50</property>
- <!-- The thread pool service used to control the bootstrap and
- auto discovery lookups -->
- <property name="lookupPool"><inject bean="jboss.system:service=ThreadPool"/></property>
+ <property name="lookupPool"><inject bean="RestartNamingThreadPool"/></property>
<property name="discoveryDisabled">false</property>
<property name="autoDiscoveryBindAddress">${jboss.bind.address}</property>
More information about the jboss-cvs-commits
mailing list