Blasius Lofi Dewanto wrote:
> 
> 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");
> 
Looking at the ejb1.1 specs, lookup("BankHome") is non-standard. EJB
should do lookups relative to java:comp/env.

You could however store this string as an evnironment property for your
beans, when deploying on JOnAs you would store "" and on an ejb1.1
clmpliant server you would store "java:comp/env/"

sven

-- 
======================================================================================
Sven E. van 't Veer                                          
http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
======================================================================================

Reply via email to