phani <[EMAIL PROTECTED]> wrote on 14.08.2002, 05:13:14:

> Hi Matthias,
> Thanks for the help.
>
> As i said i deployed Session and BMP Entity as two components ie two .jar
files. and it was not working with Remote Refference interface.

Hi Phani,

the question is not whether you use local or remote interfaces. You can use
local
interfaces if the bean you are calling runs inside the same JVM.

It is really a question of the correct structure of your deployment
descriptors so that you get a correctly filled bean environment in JNDI.

Create a bean reference that correctly points to your other JAR file.

For more info, please read the EJB spec about EJB-references and bean
environments. Other valuable sources are the following URLs:

http://www.jboss.org/online-manual/HTML/ch05s13.html
http://www.objectweb.org/jonas/current/doc/PG_Environment.html

Good luck!
Matthias

>
> If i deploy them  as a single component  then it is working fine with
Refferences.
>
> With different .jar no luck, and i was told that if i deploy them
separately then you can't use a Local refference. But i am unbale to lookup
using RemoteRefference.
>
> When ever i look up for LocalRefference and Remote refference i am
changing the ejb-jar.xml for coresponding lookup.
>
> Ie i can't invoke another component using Refferences? Was that right?
>
> I am not clear with this concept. Can you please clarify this.
>
> Once again thanks for the help.
>
> Thank you
> phani
>
>   ----- Original Message -----
>   From: Matthias Bohlen
>   To: 'phani' ; [EMAIL PROTECTED]
>   Sent: Tuesday, August 13, 2002 2:06 AM
>   Subject: RE: How to invoke bean using Local Interfaces
>
>
>   Hi,
>
>   please use
>
>       Object o = ic.lookup("java:comp/env/bean");
>
>   that will help. The bean reference is in the local environment of the
session bean, not in the global JNDI context.
>
>   Cheers...
>   Matthias Bohlen
>   ----
>   Matthias Bohlen
>   Consulting that helps project teams to succeed...
>
>   Web:
>   http://www.mbohlen.de/
>
>   Snail:
>   Luise-Albertz-Str. 25
>   D-53340 Meckenheim
>   Germany
>
>   Phone: +49 (170) 772 8545
>   Fax: +49 (2225) / 945189
>

===========================================================================
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