Please ignore my original post. Since the remoting connector is a MBean and the serverBindPort can be set, then ServiceBindingManager can *already* (no code changes required) be used to set the serverBindPort used by messaging.
To do this, add the following (changing attributes as appropriate) in your bindings.xml file: | <service-config name="jboss.messaging:service=Connector,transport=socket" | delegateClass="org.jboss.services.binding.AttributeMappingDelegate"> | <delegate-config> | <attribute name="Configuration"><![CDATA[ | <config> | <invoker transport="socket"> | <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute> | <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute> | <attribute name="serializationtype" isParam="true">jboss</attribute> | <attribute name="dataType" isParam="true">jms</attribute> | <attribute name="socket.check_connection" isParam="true">false</attribute> | <attribute name="timeout">0</attribute> | <attribute name="serverBindAddress">${jboss.bind.address}</attribute> | <attribute name="serverBindPort">7544</attribute> | <attribute name="leasePeriod">20000</attribute> | </invoker> | <handlers> | <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler> | </handlers> | </config>]]> | </attribute> | </delegate-config> | | <binding port="7544"/> | </service-config> | Then enable ServiceBindingManager in conf/jboss-service.xml and it all should work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959868#3959868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959868 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user