web.xml has <ejb-ref> and <ejb-local-ref> tags. which way we can use them?. mostly in books they mentioned about ejbb-jar.xml only?
In ejb-jar.xml, <ejb-ref> and <ejb-local-ref> declare a reference to another enterprise bean�s home and local home, respectively. The referencing bean can then lookup for those homes using JNDI, under the java:comp/env context.
Now when a Web component such a servlet (and not another bean) wants to reference an EJB, the reference is declared in web.xml, using exactly the same syntax (ejb-ref or ejb-local-ref) .
Phil. [ August 17, 2004: Message edited by: Philippe Maquet ]
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad: