Or maybe everything directly over HTTP (JNDI and RMI). Some info, please.
on 3.2.2, try using RmiBindAddress and RmiPort option.
> on 3.2.2, try using RmiBindAddress and RmiPort
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 ?
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.