Sorry clebert, I posted the wrong code (yes older version) by mistake by in
actual I am usign this one Clebert (which is the new one):
<!-- ********************* JBoss Messaging**************** -->
|
| <service-config
name="jboss.messaging:service=Connector,transport=socket"
|
delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
| <delegate-config>
| <attribute name="Configuration"><![CDATA[
| <config>
| <invoker transport="bisocket">
| <attribute name="marshaller"
isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="unmarshaller"
isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <!-- Serialization type must be jms
- do not change! -->
| <attribute name="serializationtype"
isParam="true">jms</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">19032</attribute>
| <attribute
name="leasePeriod">10000</attribute>
| <attribute
name="callbackStore">org.jboss.remoting.callback.CallbackStore</attribute>
| <attribute name="clientSocketClass"
isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| <attribute
name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| <attribute
name="callbackErrorsAllowed">1</attribute>
| <attribute name="numberOfRetries"
isParam="true">1</attribute>
| <attribute
name="NumberOfCallRetries" isParam="true">2</attribute>
| <attribute name="clientMaxPoolSize"
isParam="true">50</attribute>
| </invoker>
| <handlers>
| <handler
subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>]]>
| </attribute>
| </delegate-config>
|
| <binding port="19032"/>
| </service-config>
This config is from my server-bindings.xml which will override all the ports
quoted in individual files such as remoting-service.xml
I don't have to go to remoting-service.xml to change the port of the connector
but should reflect the one mentioned in my server bindings file, isn't it?
Unfortunately it seems that the port is picked up from remoting-service.xml
rather than my bindings file:
| 17:43:41,947 ERROR [SocketServerInvoker] Error starting ServerSocket. Bind
port: 7544, bind address: /0.0.0.0
| 17:43:41,948 ERROR [Connector] Error starting connector.
| java.net.BindException: Address already in use
| at java.net.PlainSocketImpl.socketBind(Native Method)
| at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
| at java.net.ServerSocket.bind(ServerSocket.java:319)
| at java.net.ServerSocket.<init>(ServerSocket.java:185)
| at
javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
| at
org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:260)
| at
org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:189)
| at
org.jboss.remoting.transport.bisocket.BisocketServerInvoker.start(BisocketServerInvoker.java:119)
| at org.jboss.remoting.transport.Connector.start(Connector.java:322)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
| at $Proxy0.start(Unknown Source)
| at
org.jboss.system.ServiceController.start(ServiceController.java:417)
| at
org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
|
Thanks
Madhu
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033760#4033760
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033760
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user