[jboss-cvs] JBossAS SVN: r109206 - in trunk: server/src/etc/conf/standard and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 9 03:47:33 EST 2010


Author: jaikiran
Date: 2010-11-09 03:47:33 -0500 (Tue, 09 Nov 2010)
New Revision: 109206

Added:
   trunk/server/src/etc/conf/standard/naming-jboss-beans.xml
Modified:
   trunk/build/build.xml
Log:
JBCTS-970 Set callByValue=true for naming server, in standard profile

Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml	2010-11-09 07:13:41 UTC (rev 109205)
+++ trunk/build/build.xml	2010-11-09 08:47:33 UTC (rev 109206)
@@ -384,6 +384,10 @@
         <exclude name="deploy/cache-invalidation-service.xml"/>
         <exclude name="deploy/mail-ra.rar"/>
         <exclude name="deploy/monitoring-service.xml"/>
+		<!-- Exclude naming-jboss-beans.xml, so that we can explicitly
+			use server/src/etc/conf/standard/naming-jboss-beans.xml with
+			callByValue set to true -->          
+		<exclude name="deploy/naming-jboss-beans.xml"/>          
         <exclude name="deploy/properties-service.xml"/>
         <exclude name="deploy/quartz-ra.rar"/>
         <exclude name="deploy/schedule-manager-service.xml"/>
@@ -414,6 +418,13 @@
       </fileset>
     </copy>
 
+	<copy todir="${install.standard.deploy}">
+		<fileset dir="${project.root}/server/src/etc/conf/standard">
+		    <!-- callByValue, in naming, is set to true for "standard" profile -->
+	    	<include name="naming-jboss-beans.xml"/>
+	    </fileset>
+	</copy>      
+
     <!-- TODO: temporarily override ejb3-deployers-jboss-beans.xml -->
     <copy todir="${install.standard.deployers}" overwrite="true">
       <fileset dir="${project.root}/ejb3/src/resources/standard">

Added: trunk/server/src/etc/conf/standard/naming-jboss-beans.xml
===================================================================
--- trunk/server/src/etc/conf/standard/naming-jboss-beans.xml	                        (rev 0)
+++ trunk/server/src/etc/conf/standard/naming-jboss-beans.xml	2010-11-09 08:47:33 UTC (rev 109206)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+    
+    <!-- ==================================================================== -->
+    <!-- Remote interface to JNDI, JNDI util and legacy beans: $Id:$          -->
+    <!-- ==================================================================== -->
+    
+    <bean name="LookupPool">
+        <constructor factoryMethod="newFixedThreadPool"
+            factoryClass="java.util.concurrent.Executors">
+            <!-- At least 2 threads are required -->
+            <parameter>2</parameter>
+        </constructor>
+    </bean>
+
+    <bean name="RemoteNamingBean" class="org.jnp.server.Main">
+        <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=Naming", exposedInterface=org.jnp.server.MainMBean, registerDirectly=true)</annotation>
+        
+        <property name="namingInfo"><inject bean="LocalNamingBean" /></property>
+        
+        <!-- The call by value mode. true if all lookups are unmarshalled using
+            the caller's TCL, false if in VM lookups return the value by reference. -->
+            <!--  callByValue set to true for "standard" profile -->
+        <property name="callByValue">true</property>
+        
+        <!-- The listening port for the bootstrap JNP service. Set this to -1
+            to run the NamingService without the JNP invoker listening port. -->
+        <property name="port">
+            <value-factory bean="ServiceBindingManager"
+                method="getIntBinding">
+                <parameter>jboss:service=Naming</parameter>
+                <parameter>Port</parameter>
+            </value-factory>
+        </property>
+        
+        <!-- The bootstrap JNP server bind address. This also sets the default
+            RMI service bind address. Empty == all addresses -->
+        <property name="bindAddress">${jboss.bind.address:localhost}</property>
+        
+        <!-- The port of the RMI naming service, 0 == anonymous -->
+        <property name="rmiPort">
+            <value-factory bean="ServiceBindingManager" method="getIntBinding">
+                <parameter>jboss:service=Naming</parameter>
+                <parameter>RmiPort</parameter>
+            </value-factory>
+        </property>
+        
+        <!-- The RMI service bind address. Empty == all addresses  -->
+        <property name="rmiBindAddress">${jboss.bind.address:localhost}</property>
+        
+        <!-- Set the java.rmi.server.hostname system property to rmiBindAddress -->
+        <property name="enableRmiServerHostname">true</property>
+        
+        <!-- The thread pool service used to control the bootstrap lookups -->
+        <property name="lookupExector"><inject bean="LookupPool"/></property>
+    </bean>
+    
+    <bean name="JndiViewBean" class="org.jboss.naming.JNDIView">
+        <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=JNDIView", exposedInterface=org.jboss.naming.JNDIViewMBean, registerDirectly=true)</annotation>
+        
+        <!-- The HANamingService service name -->
+        <property name="HANamingService">jboss:service=HAJNDI</property>
+    </bean>
+    
+    <!-- An obsolete bean only needed if using legacy detached invoker access,
+        or the createAlias/removeAlias operations
+    -->
+    <bean name="NamingService" class="org.jboss.naming.NamingService">
+        <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=NamingBeanImpl", exposedInterface=org.jboss.naming.NamingServiceMBean, registerDirectly=true)</annotation>
+        
+        <!--  An example of using the unifed invoker as the transport.
+            <depends optional-attribute-name="InvokerProxyFactory"
+            proxy-type="attribute">jboss:service=proxyFactory,type=unified,target=Naming</depends>
+        -->
+        <property name="namingInfo"><inject bean="RemoteNamingBean"/></property>
+        <!-- Do not start the injected naming bean -->
+        <property name="startNamingBean">false</property>
+    </bean>
+    
+    <bean name="NamingProviderURLWriter"
+      class="org.jboss.naming.NamingProviderURLWriter">
+      
+        <property name="server"><inject bean="JBossServer"/></property>
+        <property name="bootstrapAddress"><inject bean="RemoteNamingBean" property="bindAddress"/></property>
+        <property name="bootstrapPort"><inject bean="RemoteNamingBean" property="port"/></property>
+    </bean>
+    
+</deployment>



More information about the jboss-cvs-commits mailing list