[jboss-cvs] JBossAS SVN: r64669 - in branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming: restart and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 17 15:48:50 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-08-17 15:48:50 -0400 (Fri, 17 Aug 2007)
New Revision: 64669

Added:
   branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming/restart/
   branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming/restart/jboss-service.xml
Log:
[JBAS-4574] Test naming restart

Added: branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming/restart/jboss-service.xml
===================================================================
--- branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming/restart/jboss-service.xml	                        (rev 0)
+++ branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming/restart/jboss-service.xml	2007-08-17 19:48:50 UTC (rev 64669)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id$ -->
+
+<!-- ===================================================================== -->
+<!--  JBoss Server Configuration                                           -->
+<!-- ===================================================================== -->
+
+<server>
+
+   <!-- ==================================================================== -->
+   <!-- JNDI                                                                 -->
+   <!-- ==================================================================== -->
+
+   <!-- Use our own NamingService subclass that unexports the NamingServer
+        in stopService().  This better simulates a server shutdown. 
+        We don't really want to test a non-shutdown redeploy of the naming
+        service as that is a highly unlikely usage. -->
+   <mbean code="org.jboss.test.naming.restart.RestartNamingService"
+      name="jboss:service=RestartNaming">
+      
+      <!-- IMPORTANT Ensure we use our own NamingServer and don't screw up the
+           static ref to the std one in the server-side NamingContext class -->
+      <attribute name="UseGlobalService">false</attribute>      
+      <attribute name="InstallGlobalService">false</attribute>
+      
+      <attribute name="CallByValue">false</attribute>
+      <attribute name="Port">19099</attribute>
+      <attribute name="BindAddress">${jboss.bind.address}</attribute>
+      <!-- Use 0 == anonymous to minimize port conflict chances in test runs -->
+      <attribute name="RmiPort">0</attribute>
+      <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
+      <depends optional-attribute-name="LookupPool"
+         proxy-type="attribute">jboss.system:service=ThreadPool</depends>
+   </mbean>
+
+   <!-- Our own HA-JNDI that we can redeploy.  Subclasses std HA-JNDI service
+        to ensure we don't pollute static ref to the std HA-JNDI in the 
+        server-side NamingContext class -->
+   <mbean code="org.jboss.test.naming.restart.RestartHANamingService"
+      name="jboss:service=RestartHAJNDI">
+      
+	  <depends optional-attribute-name="ClusterPartition"
+         proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends>
+      <attribute name="BindAddress">${jboss.bind.address}</attribute>
+      <!-- Port on which the HA-JNDI stub is made available -->
+      <attribute name="Port">19100</attribute>
+      <!-- Use 0 == anonymous to minimize port conflict chances in test runs -->
+      <attribute name="RmiPort">0</attribute>
+      <attribute name="Backlog">50</attribute>
+      
+      <depends optional-attribute-name="LookupPool"
+         proxy-type="attribute">jboss.system:service=ThreadPool</depends>
+
+      <!-- Test doesn't need auto discovery via multicast -->
+      <attribute name="DiscoveryDisabled">true</attribute>
+      
+      <attribute name="LoadBalancePolicy">org.jboss.ha.framework.interfaces.RoundRobin</attribute>
+
+   </mbean>
+   
+   <!-- Binds an object in the above two naming services for remote lookup
+        by the test client -->
+   <mbean code="org.jboss.test.naming.restart.ObjectBinder"
+      name="jboss:service=RestartNamingObjectBinder">
+      
+      <depends optional-attribute-name="NamingService"
+         proxy-type="attribute">jboss:service=RestartNaming</depends>
+   </mbean>
+   
+
+</server>


Property changes on: branches/JBoss_4_0_5_GA_JBAS-4574/testsuite/src/resources/naming/restart/jboss-service.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native




More information about the jboss-cvs-commits mailing list