Tim, here's my service-config def in bindings file:

  | < <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">4457</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>
  | 

and the def of remote-service.xml here:

<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>
  | 

The only diff I can see is the serverBindPort which is what you expect to 
change in the main port bindings file rather than changing at instance level 
(That is, editing remote-service.xml)

This setup however throws the AddresAlreadyInUseException:

2:54:31,995 INFO  [ServerPeer] ServerPeer[0] creating server peer with ID 0
  | 12:54:32,401 ERROR [SocketServerInvoker] Error starting ServerSocket.  Bind 
port: 4457, bind address: /0.0.0.0
  | 12:54:32,405 ERROR [Connector] Error starting connector.
  | java.net.BindException: Address already in use
  | 

Ofcouser this is because, someother server is already using 4457 (and hence 
using server-config to attah a new port)

Thanks
Madhu

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041357#4041357

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041357
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to