Re: JMX, RMI and firewalls
Damien Mascord <[email protected]> Wed, 24 May 2006 08:17:38 +0800
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <[email protected]> |
David Campbell wrote: > Hi - we are using JMX to talk between a couple of Resin servers to > invoke mbeans. The problem is that whilst resin accepts > -Dcom.sun.management.jmxremote.port=8181 when RMI is called it used a > random high number port to communicate (in the example below it is > 57726. Is it possible in Resin to define a specific port for RMI in > this instance? > > 11:20:14.859044 IP res01.57681 > res02.57726: S > 2600566516:2600566516(0) win 5840 <mss 1460,sackOK,timestamp > 2352882713 0,nop,wscale 2> > > Thanks > > Dave Hi Dave, RMI is a hard beast to tame. There are many places where RMI calls ServerSocket and/or Socket to do it's communication, and hence the approach that we have had to take is to create a ServerSocketFactory and replace the default RMIServerSocketFactory. It takes care of the unicast case, though for multi-cast it's still a bit hit and miss. Seems as though there is a way using the ManagementFactory: http://archives.java.sun.com/cgi-bin/wa?A2=ind0507&L=jmx-forum&D=0&P=1221 Check that out to see if that resolves the issue? Damien