Edmund Cheung wrote:
> 
> Hi,
> 
> The following code is working in webloigc;
> 
> String initialContextFactory =
> ConfigManager.getProperty("framework.jndi.initialContextFactory","weblogic.j
> ndi.TengahInitialContextFactory");
>                 Properties  p = new Properties();
>             p.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
>             p.put(Context.PROVIDER_URL, "http://localhost");
>                 JNDILookup.jndiContext = new InitialContext(p);
> 
> But for Orion , I used
> "com.evermind.server.ApplicationClientInitialContextFactory" instead of the
> weblogic one, the error was in this line ( actually the program stopped at
> this line) - JNDILookup.jndiContext = new InitialContext(p). Do you why it
> is not working ?

That's because this is not according to the ejb specs.

Context ctx = new InitialContext();
ctx.lookup("name");

does the trick.

sven

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

Reply via email to