*
The moose likes Distributed Java and the fly likes Registry.Registry.rebind not allowed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Registry.Registry.rebind not allowed" Watch "Registry.Registry.rebind not allowed" New topic
Author

Registry.Registry.rebind not allowed

chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34
I have two applications say app1 and app2. app1 interact with app2 using rmi technology.
Both app1 and app2 are located on the same system. I want to shift app2 to some other system
but i am not able to do that since i am getting the error like Registry.Registry.rebind not allowed.
I come to the conclusion that rmi does not allow this for security reason.
If possible with rmi pease explain me how?
I also got information from you forum that it is possible to do such task using jini technology.
My requirement is that i want to use jini technology for my app1 to interact with app2
on top of rmi technology. I do not want do to changes to my core application app1
since many other applications like app3,app4 etc are dependent on my app1 and they interact with app1 using rmi.
Please suggest me how to achieve this task
without doing many change to my app1
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

All you would have to do to get this application working in RMI is to run an RMI registry on each of the server machines, bind the servers to their local registries, and make sure that clients look up servers using the correct URL. Unless server locations are going to be changing dynamically all the time, new services introduced on the fly, etc. you should be fine just using RMI.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34
I am very keen on implenting jini technology on top of my rmi architecture
can you please suggest me how to accomplish my task.
 
Consider Paul's rocket mass heater.
 
subject: Registry.Registry.rebind not allowed