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.ApplicationClie
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.getInitialContext
(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