Graeme Wilkinson wrote:
Is there a way to configure Jackrabbit to assign a specified port for
RemoteObjects when using RMI? I know you can set the RMI registry port
(which I have done) but the arbitrary port assigned to remote server
objects (e.g. RemoteRepository) is blocked but my firewall. I could open
this arbitrary port on the firewall but the port is resigned when ever
the server JVM restarts, I don't want to have to reconfigure the
firewall each time.
I think you can actually set this port in code by using
UnicastRemoteObject( int port ) constructor but from what I've seen of
the source code for the jackrabbit RMI functionality this is not used
(or maybe I'm just not looking in the right place).
You could use
UnicastRemoteObject.unexportObject(...)
and the use
UnicastRemoteObject.exportObject(..., port)
to export your remote object on a specific port. At least that is what I'm
doing.
Cheers,
Christoph