java - Create RMIServer during remote call -
i have following problem:
- two nodes (a,b)
- a has rmi client connected b's rmi server
- a invokes remote method on b
- during invokation, b changes variables , should create rmi server
the problem cannot create rmi server during remote call (fired connects b). new rmi server should created on b's localhost (otherwise error: java.rmi.accessexception: registry.registry.rebind disallowed).
so what's solution that? thinking scheduling task on thread runs on b after receives remote method invokation a. possible?
you have misstated problem. can create rmi server during remote method call. problem can't bind registry running in remote host.
this can mean client doing bind.
the solution have new server bind itself, or have remote method creates so.
Comments
Post a Comment