[jboss-cvs] JBossAS SVN: r109671 - branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/ejb2/passexp/META-INF.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Dec 2 17:09:27 EST 2010
Author: rachmatowicz at jboss.com
Date: 2010-12-02 17:09:26 -0500 (Thu, 02 Dec 2010)
New Revision: 109671
Modified:
branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/ejb2/passexp/META-INF/partition-passexp-jboss-beans.xml
Log:
Fix InvokerURL in deployment for org.jboss.test.cluster.ejb2.test.StatefulPassivationExpirationUnitTestCase (JBAS-8540)
Modified: branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/ejb2/passexp/META-INF/partition-passexp-jboss-beans.xml
===================================================================
--- branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/ejb2/passexp/META-INF/partition-passexp-jboss-beans.xml 2010-12-02 21:36:37 UTC (rev 109670)
+++ branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/ejb2/passexp/META-INF/partition-passexp-jboss-beans.xml 2010-12-02 22:09:26 UTC (rev 109671)
@@ -128,9 +128,40 @@
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.remoting:service=PassExpConnector,transport=socket", exposedInterface=org.jboss.remoting.transport.ConnectorMBean.class, registerDirectly=true)</annotation>
<constructor>
<!-- Remember that if you do use more than one param on the uri, will have to include as a CDATA, -->
- <!-- otherwise, parser will complain. -->
- <parameter><![CDATA[socket://${jboss.bind.address:localhost}:24446/?datatype=invocation&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller&enableTcpNoDelay=true]]></parameter>
+ <!-- otherwise, parser will complain. -->
+ <!-- JBAS-8540
+ NOTE: In order to handle both IPv4 and IPv6 address literals in URLs (see rfc2732), the value of
+ the InvokerURL attribute is now constructed using the ServiceBindingManger, using the following format:
+ <value-factory bean="ServiceBindingManager" method="getStringBinding">
+ <parameter>servicename</parameter>
+ <parameter>bindingname</parameter>
+ <parameter>URL string</parameter>
+ <parameter>actual host</parameter>
+ <parameter>actual port</parameter>
+ </value-factory>
+ where 'URL string' is a string which may contain the substitution variables host, hostforurl and port.
+ The value-factory element will return a string with the variables ${host}, ${hostforurl} and ${port}
+ replaced with the values for host, hostforurl and port in the metadata for the ServiceBindingManager's
+ entry for that servicename/bindingname pair.
+ In order to ensure that the values 'actual host' and 'actual port' are used in the variable substitution,
+ you must ensure that servicename and bindingname are unique to your bean deployment on the AS
+ and do not match any existing ServiceBindingManager metadata entries. A safe approach is to use the
+ following practice:
+ servicename = the JMX ObjectName of your bean deployment
+ bindingname = any identifier unique among all beans deployed with the same servicename
+ If these values are not unique, you may instead pick up the host and port of an existing ServiceBindingManager
+ metadata entry which is probably not what you want.
+ -->
<parameter>
+ <value-factory bean="ServiceBindingManager" method="getStringBinding">
+ <parameter>PassExpConnector</parameter>
+ <parameter><null/></parameter>
+ <parameter><![CDATA[socket://${hostforurl}:${port}/?datatype=invocation&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller&enableTcpNoDelay=true]]></parameter>
+ <parameter>${jboss.bind.address}</parameter>
+ <parameter>24446</parameter>
+ </value-factory>
+ </parameter>
+ <parameter>
<map class="java.util.HashMap" keyClass="java.lang.String" valueClass="java.lang.String">
<entry><key>dataType</key><value>invocation</value></entry>
<entry><key>marshaller</key><value>org.jboss.invocation.unified.marshall.InvocationMarshaller</value></entry>
@@ -142,6 +173,8 @@
</parameter>
</constructor>
</bean>
+
+
<bean name="PassExpHAJNDI" class="org.jboss.ha.jndi.HANamingService">
<!-- The partition used for group RPCs to find locally bound objects on other nodes -->
More information about the jboss-cvs-commits
mailing list