tomcat-dev mailing list archives

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

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
================================
Weining Qi
RabobankICT and Info.nl, Amsterdam
IPO, TU/e, Eindhoven, The Netherlands
http://weining.n3.net/
Tel: +31.628161183

----- Original Message -----
From: <tttye@ticnet.com>
To: <tomcat-dev@jakarta.apache.org>
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>cool.models.coop07.java.S_STRESS_32KpsHome</home>
>     <remote>cool.models.coop07.java.S_STRESS_32Kps</remote>
>     <ejb-link>jndi:/ttt1.ca.com:1099/S_STRESS_32Kps</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: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-dev-help@jakarta.apache.org


Mime
View raw message