Forums Register Login

question about ejb-ref and jndi .. HELP!!

+Pie Number of slices to send: Send
when deploying each EJB, we need to specify the JNDI name (for example, /ejb/HelloWorld), then EJB client can use that JNDI name to do the look up for the EJB home.
context.lookup("ejb/HelloWorld");
so why is ejb-ref necessary for war and ejb jar file? Can we just use the JNDI name to the do lookup in EJB or JSP, etc.. or we will have to use ejb-ref-name?
what would be the difference between using ejb-ref-name and using ejb jndi name for lookup?
also, i saw code that use prefix the lookup name with java:/comp/env, some don't.. why? what should be the standard?
Thanks in advance.
+Pie Number of slices to send: Send
any one can help?
+Pie Number of slices to send: Send
Please download the ejb spec. It explains the meaning of various tags and how they are used.
It would be better if you post these types of queries to J2EE section. You will receive a quick response there.
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 777 times.
Similar Threads
Problem in JNDI lookup
Calling EJB3.0 from another EJB3.0
Jboss and Ejb 2.1 ejb-ref lookup
can any one help me!?? EXPERTS??
Lookup EJB on Different Application servers
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:54:38.