What is the difference between the two approaches of looking up in JNDI environment?
ctx.lookup("ejb/Account");
ctx.lookup("java:comp/env/ejb/Account");
Thanks
Discussions
EJB programming & troubleshooting: What is the difference between the two approaches of looking up
-
What is the difference between the two approaches of looking up (3 messages)
- Posted by: alan chang
- Posted on: April 29 2005 22:48 EDT
Threaded Messages (3)
- What is the difference between the two approaches of looking up by Amit Kumar on May 03 2005 16:40 EDT
- remote and local by Kim Chen on May 10 2005 09:29 EDT
- What is the difference between the two approaches of looking up by alan chang on May 12 2005 04:27 EDT
-
What is the difference between the two approaches of looking up[ Go to top ]
- Posted by: Amit Kumar
- Posted on: May 03 2005 16:40 EDT
- in response to alan chang
Nothing.
One is an absolute path and another one is relative.
Regards
Amit -
remote and local[ Go to top ]
- Posted by: Kim Chen
- Posted on: May 10 2005 09:29 EDT
- in response to alan chang
the global lookup will be only used for the remote lookup. The reference lookup (java:comp/env) can be used for remote and local lookup. But it is still depending on the vendor. Please speak out if i am wrong. Thanks! -
What is the difference between the two approaches of looking up[ Go to top ]
- Posted by: alan chang
- Posted on: May 12 2005 04:27 EDT
- in response to alan chang
Thanks a lot.