It is also possible to reference a bean outside the ear. However in that
case the ejb-link element cannot be used to specify this reference.

Amit.

----- Original Message -----
From: Johan Eltes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 12:56 PM
Subject: Re: ejb reference & ejb link


> J2EE 1.2: No
> J2EE 1.3: Yes, within the same EAR.
>
> /Johan
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Glenn Dickson
> Sent: den 20 februari 2002 08:17
> To: [EMAIL PROTECTED]
> Subject: Re: ejb reference & ejb link
>
> I thought one could not reference another bean outside of it jar?
>
> Glenn
> ----- Original Message -----
> From: "Katz, Guy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 19, 2002 10:03 PM
> Subject: Re: ejb reference & ejb link
>
>
> > just 'link' your resource ref to the other bean's jar file.
> > <ejb-ref>
> >       ....
> >      .....
> >      <ejb-link>.../../DispatcherBean.jar#DispatcherBean
> > <ejb-ref>
> >
> > -----Original Message-----
> > From: Marco Mistroni [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 19, 2002 3:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: ejb reference & ejb link
> >
> >
> > hi all,
> >
> >    i am trying to use an ejb-ref for referring other beans from my own
> Bean.
> > the examples that i have seen (in Mastering EJB II) shows that the two
> beans
> > are declared
> > in the SAME deployment descriptor.
> >
> > But what if the bean to be referenced is in another jar file, deployed
> with
> > another deployment
> > descriptor??
> >
> > how then shall i structure my deployment descriptor??
> >
> > here is the sample of my deployment descriptor of bean ConverterBean
> >
> > <ejb-jar>
> >   <enterprise-beans>
> >     <session>
> >       <ejb-name>ConverterBean</ejb-name>
> >       <home>converter.ConverterHome</home>
> >       <remote>converter.Converter</remote>
> >       <ejb-class>converter.ConverterBean</ejb-class>
> >       <session-type>Stateless</session-type>
> >       <transaction-type>Container</transaction-type>
> >
> >       <ejb-local-ref>
> >        <description>First trial of an EJB reference</description>
> >        <ejb-ref-name>ejb/Dispatcher</ejb-ref-name>
> >        <ejb-ref-type>Session</ejb-ref-type>
> >        <local-home>dispatcher.DispatcherHome</local-home>
> >        <local>dispatcher.Dispatcher</local>
> >        <ejb-link>DispatcherBean</ejb-link>
> >       </ejb-local-ref>
> >
> >    </session>
> >
> >
> >   </enterprise-beans>
> >   <assembly-descriptor>
> >     <container-transaction>
> >       <method>
> >         <ejb-name>ConverterBean</ejb-name>
> >  <method-name>*</method-name>
> >       </method>
> >       <trans-attribute>Required</trans-attribute>
> >     </container-transaction>
> >   </assembly-descriptor>
> > </ejb-jar>
> >
> >
> > when i try to run the weblogic ejb compiler, i got (obviously) the
> following
> > exception:
> >
> > ERROR: Error from ejbc:
> >         In ejb-jar.xml, the EJB 'ConverterBean' contains an invalid
> > ejb-local-re
> > f 'ejb/Dispatcher'. The ejb-local-ref must either have an ejb-link set
or
> an
> > ejb
> > -local-reference-description must be added to the weblogic-ejb-jar.xml
> > descripto
> > r for this ejb-local-ref.
> > ERROR: ejbc found errors
> >
> >
> > Can anyone help me??
> >
> > thanx in advance and regards
> >     marco
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
==========================================================================To
> > unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
===========================================================================

> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to