• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help! Connection Denied

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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.
YING Ren
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the URL correct?
Mark
 
Ying Ren
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
Mark,
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?
YING REN
reply
    Bookmark Topic Watch Topic
  • New Topic