This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB lookup resolution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB lookup resolution" Watch "EJB lookup resolution" New topic

EJB lookup resolution

Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290


How is the servername resolution done for Remote EJB lookups.

I have an application which looks up an EJB. If I put the server name in host file it works fine. Oherwise it throws
this exception: horebs03t
at Source)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)

The host is added to DNS server and can ping it correctly even while not defined in the host file.

Also the following code works fine without any entry in host file
URL url = new URL("http://horebs03t:2810/");

My questions is how is the resolution done for iiop:// ejb lookups? Why cant it query the DNS server?
Is it a must that I have an entry in the Host files


Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

It should work and use DNS to resolve the server name to ip address. What does your file look like?


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
It is sorta covered in the JavaRanch Style Guide.
subject: EJB lookup resolution
It's not a secret anymore!