tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Tye" <tt...@ticnet.com>
Subject Re: <ejb-ref> <ejb-link> Implementation in 4.0.b1
Date Sat, 10 Mar 2001 04:32:32 GMT
Where is the interface document for tomcat object factories?
I would like to have an object factory for JBoss context.

----- Original Message -----
From: Remy Maucherat <remm@apache.org>
To: <tomcat-dev@jakarta.apache.org>
Sent: Friday, March 09, 2001 7:13 PM
Subject: Re: <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?
>
> Tomcat 4 will parse the web.xml file and bind references to the specified
> resources in the naming environment. To be able to resolve those
references,
> TC needs an appropriate object factory. If no object factory is available,
> null is returned when you do a lookup.
>
> Right now, there are two factories :
> - one for getting Tyrex managed data sources
> - one for getting Tyrex UserTransactions
> You can easily add additional factories for additional resource types
(EJBs,
> JMS resources ...). Contributed object factories (provided they are
generic
> enough) could be added to the repository.
>
> Remy
>
>
> ---------------------------------------------------------------------
> 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