Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What is initial Naming Context?" Watch "What is initial Naming Context?" New topic
Author

What is initial Naming Context?

Lewis Mayer
Greenhorn

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
Greenhorn

Joined: Sep 27, 2003
Posts: 15
you can have a look at this url to get about InitialContext
http://java.sun.com/products/jndi/tutorial/basics/prepare/initial.html

For lookup method:

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

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

Joined: Jan 10, 2002
Posts: 60774
    
  65

"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.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lewis Mayer
Greenhorn

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)..
 
 
subject: What is initial Naming Context?
 
Similar Threads
wsad 5 - initial context from client module
Starting problem
Question on "assigning Object to Context interface"
calling EJB from another server, very weard problem, please come in really need help
Passing the same stateful session bean across JSF pages