The moose likes Servlets and the fly likes What is initial Naming Context? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What is initial Naming Context?" Watch "What is initial Naming Context?" New topic

What is initial Naming Context?

Lewis Mayer

Joined: May 08, 2005
Posts: 9
Hi, I'm new at EJB's and was trying out NetBeans 4.1 and was doing the tutorials. I created a bean and was using a servlet to call the Bean. Netbeans inserted "look up code" like this -

I'm sure everybody knows what this means, and its basic. I've been googling and trying to find out what "initial naming context" and "lookup" means but I could not find any useful information, hence my post here.

Could someone please tell me what I am looking at. Wht each line means Or gimme any links to site that explain this in a more 'understandable' manner.. thnkx!!
Gopi Kishore

Joined: Sep 27, 2003
Posts: 15
you can have a look at this url to get about InitialContext

For lookup method:

For Complete details:
[ UD: removed link to copyrighted material ]
[ August 03, 2007: Message edited by: Ulf Dittmer ]
Lewis Mayer

Joined: May 08, 2005
Posts: 9
thnx a lot gopi. i shall look it up.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

"Java Man",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Forum Bartender

[Asking smart questions] [About Bear] [Books by Bear]
Lewis Mayer

Joined: May 08, 2005
Posts: 9
Oh, I didnt knw that. Another 'naming' issue eh.. hw appropriate is tat in this topic :-)
Anyway changed it. Thnkx for notifying me Bear Bibeault.

btw, tht tutorial is very dense. can anybdy jst explain in a few sentences the meaning of those 4 lines (if it can, or I'll read the whole tutorial)..
I agree. Here's the link:
subject: What is initial Naming Context?
It's not a secret anymore!