|
dear all,
i've started orion 1.40 as follows:
java -jar orion.jar -userThreads
and then tried to get a reference
to the InitialContext, and received
this stack trace.
f:\dev\script>java -classpath
f:\orion\orion.jar;f:\jdk1.3\jre\lib\rt.jar;f:\classes
test.OrionTest
javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads at com.evermind.server.g6.bi(JAX) at com.evermind.naming.j_.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at test.OrionTest.<init>(OrionTest.java:18) at test.OrionTest.main(OrionTest.java:31) i'm trying to create a dos shell program that i can
use to test EJB's
running inside orion.
1. am i starting orion correctly to allow this with
the userThreads flag?
2. what values should i use to initialise the
InitialContext? is the following correct?
Hashtable env = new
Hashtable();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationInitialContextFactory"); env.put(javax.naming.Context.URL_PKG_PREFIXES, "com.evermind.server"); Context ctx = new InitialContext(env); i know i shouldn't need to if my classpath is set
up correctly but i'd like to know what values
should be used anyway.
thanks,
greg
|
- Re: userThreads + calling EJBs from outside orion. Greg Matthews
- Re: userThreads + calling EJBs from outside orion. cuenot jerome
- RE: userThreads + calling EJBs from outside orion. Jeff Schnitzer
- Re: userThreads + calling EJBs from outside orion. Christian Sell
- Orion can't find my jar file for my servlet....! Keith Kwiatek
