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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -