Actually, I just figured it out. My hostname
was not included in /etc/hosts, so it appears
that something was silently failing.
After some digging at the jdc rmi forum,
using some code like the following
was suggested for a similar problem:
java.net.InetAddress localhost =
java.net.InetAddress.getLocalHost()
String host = localhost.getHostName();
Before adding my hostname to /etc/hosts, the above
code would throw an obvious exception.
adding a line like
myHostName 127.0.0.1
in /etc/hosts solved my problem.
thanks.
jp
Joseph Shraibman wrote:
>
> Jean-Pierre Fournier wrote:
>
> > Hi Folks,
> >
> > I'm hoping that some RMI guru can help
> > me get started. I'm trying to create a
> > simple RMI client/server on a single computer,
> > but something is choking in the rebind() call.
> > <snip>
>
> Maybe for some reason rmiregistry can't tell you are trying to connect
> from the localhost? Trying binding with just the string, not
> //localhost/string
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]