I would like to know how i can do a lookup in JNDI. I mean When do i have to use "java:/comp/env...." instead of just "myBean" ?
SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
posted 11 years ago
hi regarding your question there is no need to show "java:env/.........."just to show ur bean name in the lookup fine when u want to call ur bean u have to look up ur bean and when u want o user ur data source u have to look up ur data source fine
Homeinterface ref=(Homeinterface)PortableRemoteObject.narrow(ctx.lookup("Bean which we used "), Homeinterface.class); then we have to use ref any time when we have to call any bean method fine I think this will help u