tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weining Qi" <>
Subject Re: <ejb-ref> <ejb-link> Implementation in 4.0.b1
Date Fri, 09 Mar 2001 21:55:12 GMT

if you are running tomcat 3.x in the same window (tomcat run), look at the
feedback from tomcat when call the ejb that way, you can see that tomcat does
not recognize the namespace "java:com/env/" for calling ejb as recommended by
the sun j2ee specification v1.3. you should call ejb directly by its jndi name,
which you gave when you deployed it.

tomcat 4.0-beta has also the same problem, but it improves with interpreting the
<env-entry> element: you can get environment entries defined within deployment
descriptor of the tomcat app the same way of j2ee speci v1.3 (p. 5-4). but, with
tomcat 4.0-beta you cannot call ejb by jndi name!? i just test this today. the
ejb server i am using is j2ee sun reference implementation, winnt and win2000.

is there anybody who has met the same on other ejb servers?

Weining Qi
RabobankICT and, Amsterdam
IPO, TU/e, Eindhoven, The Netherlands
Tel: +31.628161183

----- Original Message -----
From: <>
To: <>
Sent: Friday, March 09, 2001 5:55 PM
Subject: <ejb-ref> <ejb-link> Implementation in 4.0.b1

> I am trying to obtain a remote reference to an EJB in another machine.
> I have set the ejb-ref in web.xml as follows:
> <ejb-ref>
>     <description>Sample bean generated by coolgen placed here for ease of
>                      early testing</description>
>     <ejb-ref-name>ejb/S_STRESS_32K</ejb-ref-name>
>     <ejb-ref-type>Session</ejb-ref-type>
>     <home></home>
>     <remote></remote>
>     <ejb-link>jndi:/</ejb-link>
> </ejb-ref>
> However, when I do ctx.lookup("java:/comp/ejb/S_STRESS_32K") I get a null
> reference instead of the necessary remote reference to the home interface.
> Is ejb-link implemented and documented?
> Which code is involved in ejb-link lookup?
> Is this fixed in the latest 4.0?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message