[jboss-user] [JBoss Remoting] - Re: Configure Local port for client socket

Ron Sigal do-not-reply at jboss.com
Tue Dec 14 15:28:43 EST 2010


Ron Sigal [http://community.jboss.org/people/ron.sigal%40jboss.com] created the discussion

"Re: Configure Local port for client socket"

To view the discussion, visit: http://community.jboss.org/message/575992#575992

--------------------------------------------------------------
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/ http://docs.jboss.org/jbossremoting/2.5.3.SP1/html/).

-Ron
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/575992#575992]

Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101214/ad483aeb/attachment.html 


More information about the jboss-user mailing list