hi,
can somebody explain me the significance of this path"java:comp/env/" during JNDI lookup...
what does this mean?
Tx,
Suzi
-
java:comp/env/ (4 messages)
- Posted by: Madhavi Gupta
- Posted on: January 10 2001 13:53 EST
Threaded Messages (4)
- java:comp/env/ by Tyler Jewell on January 10 2001 14:12 EST
- java:comp/env/ by Madhavi Gupta on January 11 2001 11:55 EST
-
java:comp/env/ by Eric Ma on January 12 2001 09:11 EST
- java:comp/env/ by Eric Ma on January 12 2001 10:36 EST
-
java:comp/env/ by Eric Ma on January 12 2001 09:11 EST
- java:comp/env/ by Madhavi Gupta on January 11 2001 11:55 EST
-
java:comp/env/[ Go to top ]
- Posted by: Tyler Jewell
- Posted on: January 10 2001 14:12 EST
- in response to Madhavi Gupta
Hi Sus-
java:comp/env is called the NamingEnvironment for EJBs. It's merely a naming scheme that bean developers and application server vendors must adhere to for locating resources, resource managers, other EJB references, environment variables, and resource manager connection factory references (yes, this is their technical term). These items that an EJB may want to use are not actually bound into java:comp/env, but an application server has to map requests for java:comp/env to the actual location that these items are bound to. By standardizing on java:comp/env, all EJBs are now forced to be similar in how they locate resources that they require. -
java:comp/env/[ Go to top ]
- Posted by: Madhavi Gupta
- Posted on: January 11 2001 11:55 EST
- in response to Tyler Jewell
Hi,
thanks a lot for your reply.
Can u/some body throw more light on this???? I didn't understand this very well....
Tx,
Suzi -
java:comp/env/[ Go to top ]
- Posted by: Eric Ma
- Posted on: January 12 2001 09:11 EST
- in response to Madhavi Gupta
Following up on the previous question. Let's say I have an entry in the weblogic.properties file like the following:
weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.demoPool=demoPool
What will be the correct JNDI lookup string when I want to get the DataSource from JNDI? Is it java:comp/env/jdbc/demoPool, or java:comp/env/jdbc/jts/demoPool? -
java:comp/env/[ Go to top ]
- Posted by: Eric Ma
- Posted on: January 12 2001 10:36 EST
- in response to Eric Ma
Answering my own question --- you need to create an reference entry in the deployment descriptor, and then map this entry to the one in the weblogic.properties file.