File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Help! Connection Denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Help! Connection Denied" Watch "Help! Connection Denied" New topic

Help! Connection Denied

Ying Ren
Ranch Hand

Joined: May 24, 2002
Posts: 35
I have finished the code. But I have problem that Client can not connect to the server, and find the object.
I use the connectionfactory as my rebind object. This object extends unicast.. and implements the Connection which is a remote interface. I also have a class called remoteDataAccess which implements another remote interface called remoteInterface. Is it possible that I have two different remote Interface which cause the failure.
My client code (DataFactory) is
ConnectionFactory data=(ConnectionFactory)Naming.lookup(url);
DataInterface remotedata=data.getConnection();

Thank you.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Is the URL correct?

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ying Ren
Ranch Hand

Joined: May 24, 2002
Posts: 35
You means I have no problem in having two remote interface. Do I need to put the two Interface into my client package, not only in server package?
Another question, I have not used the thread so far. Do you think it is neccesary?
I agree. Here's the link:
subject: Help! Connection Denied
It's not a secret anymore!