This content has been marked as final.
Show 2 replies
-
1. Re: BisocketServerInvoker with server behind NAT
ron_sigal Aug 21, 2007 1:44 PM (in response to maihde)Hi Michael,
You've certainly done your homework. I just need to point out that Remoting 2.2.2 has not been released yet. I'm hoping it will be available by next week.
-Ron -
2. Re: BisocketServerInvoker with server behind NAT
ron_sigal Aug 22, 2007 6:30 PM (in response to maihde)I've just uploaded a jboss-remoting.jar with an implementation for JBREM-749 "BisocketServerInvoker: Make configurable the address and port of secondary server socket". The address to which the secondary ServerSocket is bound is the same as that to which the "primary" ServerSocket is bound. The address sent to the client to use in connecting to the secondary ServerSocket is taken from the server's InvokerLocator. It follows that if you set the "clientConnectAddress" property, it will be used for the secondary ServerSocket. I.e., something like
<mbean code="org.jboss.remoting.transport.Connector" name="jboss.messaging:service=Connector,transport=bisocket" display-name="Bisocket Transport Connector"> <attribute name="Configuration"> <config> <invoker transport="bisocket"> <attribute name="clientConnectAddress" isParam="true">org.jboss.bluemonkeydiamond</attribute>
Also, there are two new configurable parameters in the class org.jboss.remoting.transport.bisocket.Bisocket specific to the bisocket transport:public static final String SECONDARY_BIND_PORT = "secondaryBindPort"; public static final String SECONDARY_CONNECT_PORT = "secondaryConnectPort";
SECONDARY_BIND_PORT determines which port the secondary ServerSocket binds to, and SECONDARY_CONNECT_PORT determines which port is sent to the client to use in connecting to the secondary ServerSocket.
You can download the jar from http://anonsvn.jboss.org/repos/repository.jboss.org/jboss/remoting/2.2.2.Beta.