File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes rmi based problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "rmi based problem" Watch "rmi based problem" New topic

rmi based problem

manjeet singh

Joined: Mar 22, 2001
Posts: 7
i have a problem with an rmi program.when i start the registry explicitly ,the server connects.but if i try to start the registry through program and bind it doesnt work.also the gethost(),getcodebase() doesn't work.i have to give explicitly localhost to make the program work.
any ideas.thanx beforehand.
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
Perhaps a snippet of the code you use to bind (rebind) to the rmi
registry might shed a bit more light on the problem.
manjeet singh

Joined: Mar 22, 2001
Posts: 7
if i go for the case a
starting the registry externally
it works
but if i go for case b
it does't work.
also using
doesnt work.
besides this,in my chat application i am able to make the server register and give its methods to the client.but for the chat client using
doesn't work.
the chat cant work if the client cant export its methods in this way.any ideas?thanks beforehand!
Doug Melzer
Ranch Hand

Joined: Mar 23, 2000
Posts: 51
If 5050 is the port number for the rmiregistry, then you should use ":5050" in your binding.
Doug Melzer
Ranch Hand

Joined: Mar 23, 2000
Posts: 51
Forget my last reply. The "bindname" is a user-defined string.
I agree. Here's the link:
subject: rmi based problem
jQuery in Action, 3rd edition