Hi, I have a server application that has a remote object(call it A). I register it with RMI. I dont run rmic to generate the stubs, but before I bind the object to registry, I do exportObject on the fly and then register it.
Now my server process will spawn new processes and they in turn will talk to my remote objects. The client process also has some remote objects(call it B). But I dont register them with RMI registry, rather pass them as parameters when I call the remote object A's methods. ie A.somethod(B).
To launch the new process, I use ProcessBuilder's start() method. They work fine in my machine in the developemnt environment. But it does not work in my collegues machine.(also development env). The process gets started, but the newly started process never calls back the method in my server object.
Could someone help me what is going wrong here. Also I am not setting any RMISecurityManager either in my server process or in client process. Do I need to set one?