Title: RE: Orion Server java:comp/env?

Hi All,

I just wanted to know why we use java:comp/env before actual bean name for looking through JNDI. Once i had a problem with it. When i was using java:comp/env when a error was comming when looking the bean but when i removed java:comp/env and gave only bean name it was runnig fine.

Kamran

-----Original Message-----
From: Blasius Lofi Dewanto [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 11:15 PM
To: Orion-Interest
Subject: Orion Server java:comp/env?


Hi!

I just wonder, is that possible to
make the lookup from "the client program"
without java:comp/env?

The problem is, I want to write an EJB application
that can use JOnAs and Orion as the container.
JOnAs's JNDI does not support java:comp/env
at the client level.

Client program: For example:
Context context = new InitialContext();
Object homeObject = context.lookup("java:comp/env/BankHome");

This won't work in JOnAs. Instead I have to write this:
Context context = new InitialContext();
Object homeObject = context.lookup("BankHome");

Do I have to write 2 type of client accesses?
One for JOnAs and one for Orion? Because Orion
uses <ejb-ref> in the client-application.xml
and JOnAs doesn't.

Any help would be appriciated!
Please answer directly to my email: [EMAIL PROTECTED]

Thanx,
--
---------------------------------------------------
Blasius Lofi Dewanto
---------------------------------------------------
OpenUSS - Open University Support System
http://openuss.sourceforge.net
---------------------------------------------------
E-Mail   : [EMAIL PROTECTED]
ICQ      : 39343280
---------------------------------------------------


Reply via email to