There was a discussion on tomcat-dev regarding the use of ejb-link. 
See  http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00292.html and the reply. 
I took the reply to mean that you _can_ link to an EJB in another app-server.

br. Christian

On Tuesday 12 November 2002 14:38, Philippe de M. Sevestre wrote:
> Check the JBoss docs for a similar configuration.
> In short, you have to figure out how to setup the
> JNDI InitialContext in you app.
>
> BTW,I think you're misusing the <ebj-link> item.
> From the servlet DTD:
>
> <!--
>
> The ejb-link element is used in the ejb-ref or ejb-local-ref
> elements to specify that an EJB reference is linked to another
> enterprise bean.
> The value of the ejb-link element must be the ejb-name of an
> enterprise bean in the same J2EE application unit.
> The name in the ejb-link element may be composed of a
> path name specifying the ejb-jar containing the referenced enterprise
> bean with the ejb-name of the target bean appended and separated from
> the path name by "#". The path name is relative to the WAR
> containing the web application that is referencing the enterprise bean.
> This allows multiple enterprise beans with the same ejb-name to be
> uniquely identified.
> Examples:
> <ejb-link>EmployeeRecord</ejb-link>
> <ejb-link>../products/product.jar#ProductEJB</ejb-link>
>
>
> -->
>
>
>
>
>
>
> ----- Original Message -----
> From: "Jose Antonio Martinez" <>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: terça-feira, 12 de novembro de 2002 08:25
> Subject: Re: How to configure an URLContextFactory for tomcat
>
> > do you have an application server working together
> > with tomcat? i think tomcat cant serve ejb itself
> >
> >  --- Christian Surlykke <[EMAIL PROTECTED]> escribió: >
> > Hi
> >
> > > I'm trying to call an EJB running on OC4J from a
> > > servlet. I want to use a ejb-ref element in web.xml
> > > like:
> > >
> > > <ejb-ref>
> > >     <ejb-ref-name>ejb/MyEJB</ejb-ref-name>
> > >     <ejb-ref-type>Session</ejb-ref-type>
> > >     <home>test.MyEJBHome</home>
> > >     <remote>test.MyEJB</remote>
> >
> > <ejb-link>ormi://localhost:23791/ejb/MyEJB</ejb-link>
> >
> > > </ejb-ref>
> > >
> > > How do I configure Tomcat to use an
> > > URLContextFactory of my own making to handle the
> > > 'ormi:' schema ?
> > >
> > > (I vaguely suspect that it has something to do with
> > > <resource-ref> elements,  but that seems to only
> > > apply to stuff bound beneath the java: schema..)
> > >
> > > Any hints would be appreciated
> > >
> > > best regards Christian Surlykke
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:tomcat-user-help@;jakarta.apache.org>
> >
> > _______________________________________________________________
> > Yahoo! Messenger
> > Nueva versión: Webcam, voz, y mucho más ¡Gratis!
> > Descárgalo ya desde http://messenger.yahoo.es
> >
> > --
> > To unsubscribe, e-mail:
>
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
>
> > For additional commands, e-mail:
>
> <mailto:tomcat-user-help@;jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional
> commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Attachment: msg00292.html
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to