See the jboss-3.2.3/docs/examples/binding-manager/sample-bindings.xml
<service-config name="jboss:service=Naming"
delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
<delegate-config portName="Port" hostName="BindAddress">
<attribute name="RmiPort">1098</attribute>
</delegate-config>
<binding port="1099" host="${jboss.bind.address}"/>
</service-config>
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Boulatian,
Misak
Sent: Tuesday, February 03, 2004 10:56 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] service-bindings.xml in jboss 3.2.3
Hi,
I am trying to run multiple instance of jboss but unfortunately this
version of jboss introduced another port called RmiPort. Now under
jboss:service=Naming I have to override two ports that is not possible
through just simple AttributeMappingDelegate. It seems like I have to
use XSLTConfigDelegate. This is my xsl:
<service-config name="jboss:service=Naming"
delegateClass="orgjboss.services.binding.XSLTConfigDelegate"
>
<delegate-config>
<xslt-config configName="Port"><![CDATA[
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:output method="xml" />
<xsl:param name="port"/>
<xsl:template match="*">
<attribute name="Port"><xsl:value-of select="$port" /></attribute>
</xsl:template>
</xsl:stylesheet>
]]>
</xslt-config>
</delegate-config>
<binding port="1099" />
</service-config>
This way I get ClassCastException.
Is ther any other way to rewrite RmiPort or two ports under the same
service.
Thanks,
Misak
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user