I think I remember somebody said that you should use

(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextF
actory");

I would check the archives, but I think I'm right.

Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd

mailto:[EMAIL PROTECTED]


-----Original Message-----
From: Enrique Wallace [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 July 2000 7:10
To: Orion-Interest
Subject: initial context help


Hi,

I'm an Orion newbie and was wondering if anyone can tell me how or tell me 
where to find info on how to setup and acquire the initial context for a 
bean.  I have deployed some EJBs successfully (i think), but don't know the 
magic words to get the initial context for them.  I tried the following on a

standalone java client:

Hashtable h = new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClient
InitialContextFactory");
Context jndiContext = new InitialContext(h);
Object obj = jndiContext.lookup("CabinBean");
CabinHome home = (CabinHome) javax.rmi.PortableRemoteObject.narrow(obj, 
CabinHome.class)

but get this error message:

javax.naming.NamingException: META-INF/application-client.xml resource not 
found at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.titan.cabin.Client_1.main(Client_1.java:20)

how do i use a standalone java client with an application-client.xml file?

thanks for any help.

ekw
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Reply via email to