hello Greg,

for used the -userThreads flag you must started orion with this command:

java -jar orion.jar -userThreads true

Jerome.

Greg Matthews wrote:

 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 receivedthis 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'srunning 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 valuesshould be used anyway. thanks,greg 
begin:vcard 
n:Cuenot;Jerome
tel;fax:+33 (0)4.37.41.82.01
tel;work:+33 (0)4.37.41.82.63
x-mozilla-html:FALSE
url:http://www.stellarx.com
org:StellarX;R & D
adr:;;56 Avenue du 11 Novembre 1918;Lyon Tassin Le Bourg;Rhone-Alpes;69160;France
version:2.1
email;internet:[EMAIL PROTECTED]
title:Ing�nieur D�veloppeur
note:http://www.stellarx.com
fn:Jerome Cuenot
end:vcard

Reply via email to