-
-
2. Re: RMI on fixed port(s)
wil Oct 31, 2003 2:06 AM (in response to wil)Or maybe everything directly over HTTP (JNDI and RMI). Some info, please.
-
3. Re: RMI on fixed port(s)
ioparra Oct 31, 2003 5:36 PM (in response to wil)on 3.2.2, try using RmiBindAddress and RmiPort option.
-Ivan -
4. Re: RMI on fixed port(s)
wil Nov 5, 2003 1:26 PM (in response to wil)> on 3.2.2, try using RmiBindAddress and RmiPort
> option.
>
>
> -Ivan
Hi Ivan,
Thanks.
I've placed the RmiPort attribute in the jboss-service.xml. When i launch my jboss, the port i've chosen (11099) actually appears. At the moment i do a jndi-lookup from a client, a anonymous (server) socket is attached to it (until i close my initialContext in my client). This anonymous port is dynamically assigned. I guess this is made by de (default) RMIServerSocketFactory (which, i guess, create a serversocket with port 0).
What i really want to do is also assign an fixed port for this RMIServerSocketFactory.
(i guess you can also applie this JRMPInvoker-RMIObjectPort 4444).
Do i need to write my own RMIServerSocketFactory ?
Alternatives?
TIA
wil. -
5. Re: RMI on fixed port(s)
frito Nov 6, 2003 2:36 AM (in response to wil)You have to use RMI over SSL. There is an example with JBoss (see the test suite) how to do this.
Even you can search the forum. This has been discussed several times.
Greetings,
Frito