jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Villegas <...@uniscope.jp>
Subject Re: jcr-rmi behind firewall
Date Sat, 20 May 2006 01:47:24 GMT
In my case we can't use SOCKS, we don't control the firewall. I can only 
request some ports to be open.

My question is then, why is this port used and where is created. I 
didn't see any explicit creation of sockets in the jcr-rmi code. I'm 
guessing that since it uses the java RMI API, probably the RMI API is 
defaulting to an anonymous port when a connection factory of some sort 
is created. But surely this can be configured.
Any hints?


Nicolas Toper wrote:
> You can use a SOCKS library for this if your firewall supports it. SOCKS is
> a protocol btw an application and a firewall to negociate a dynamic port.
> This is the cleanest solution I think.
> There is jSocks for instance which support it.
> nico
> My blog! http://www.deviant-abstraction.net !!
> On 5/19/06, Carlos Villegas <cav@uniscope.jp> wrote:
>> Hi,
>> I've been trying to connect to a jcr-rmi instance running on JBoss
>> behind a firewall with no success.
>> According to the JBoss documentation, I need to open 3 ports on a
>> standard configuration: 1098,1099, and 4444. I've done this and I'm able
>> to invoke EJBs through RMI to the server behind the firewall.
>> However, it doesn't work for the jcr-rmi server. The jcr-rmi is bound to
>> JBoss JNDI as per the instructions in jcr-rmi javadocs. It works fine
>> with no firewall in the middle.
>> What I'm noticing is that when I run my jcr-rmi service and bind it to
>> JNDI it seems to open an anonymous port on the server. I also see the
>> client trying to connect to this port when I invoke the first operation
>> on the remote Repository instance. But since the port is allocated
>> randomly I can't set a firewall rule for it!
>> Any ideas how to configure this port?
>> Carlos

View raw message