Ah, so it's being loaded as a resource,

thanks,

Kevin Jones
DevelopMentor
www.develop.com

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Joni Suominen
> Sent: 31 May 2001 13:35
> To: Orion-Interest
> Subject: Re: Writing an external client
>
>
> Hi Kevin!
>
> Please check that applications\CricetApp is in your CLASSPATH.
>
> --
> Joni
> [EMAIL PROTECTED]
>
> Kevin Jones wrote:
> >
> > I want to access a javax.sql.DataSource from an external
> client, or, failing
> > that an EKB Session bean.
> >
> > Looking at the (scant) Orion docs I have to do something like this
> >
> > Hashtable env = new java.util.Hashtable();
> >
> env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.Appli
> cationClie
> > ntInitialContextFactory");
> > env.put(Context.PROVIDER_URL,"ormi://localhost/CricketApp");
> >
> > Context initial = new InitialContext(env);
> >
> > However I get an exception at the call to new InitialContext(env)
> >
> > javax.naming.NamingException: META-INF/application-client.xml
> resource not
> > found
> >
> >         at
> >
> com.evermind.server.ApplicationClientInitialContextFactory.getInit
> ialContext
> > (JAX)
> >         at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
> >         at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
> >         at javax.naming.InitialContext.init(InitialContext.java:222)
> >         at javax.naming.InitialContext.<init>(InitialContext.java:198)
> >         at SimpleClient.main(SimpleClient.java:18)
> >
> > I've put an application-client.xml in
> applications\CricketApp\META-INF, but,
> > obviously it's not being found.
> >
> > What am I missing/doing wrong?
> >
> > Kevin Jones
> > DevelopMentor
> > www.develop.com
>


Reply via email to