JBoss Community

Re: Configure Local port for client socket

created by Ron Sigal in JBoss Remoting - View the full discussion

Hi Giftsamuel,

 

Remoting doesn't have a built-in facility for doing what you're asking for.  However, here's something you can try.  When SSLSocketClientInvoker tries to create a new socket (actually the code is in SocketClientInvoker), it will look for a configured socket factory and, if one exists, it will call

 

  s = socketFactory.createSocket();

 

You could create a custom socket factory that binds a new socket to a port in the appropriate range.

 

For more information about configuring socket factories, see Section "5.7. Socket factories and server  socket factories" of the Remoting Guide (http://docs.jboss.org/jbossremoting/2.5.3.SP1/html/).

 

-Ron

Reply to this message by going to Community

Start a new discussion in JBoss Remoting at Community