-userThreads should not be used with the -D option (it is not a definition)
but should be added to the args array before calling the main method.

Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd

mailto:[EMAIL PROTECTED]


-----Original Message-----
From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 23 July 2000 13:00
To: Orion-Interest
Subject: How to programatically start orion ejb container


Hello,

How can I start an ejb container programmatically.  I want to start the
container and then do some initialization.  I tried calling
ApplicationServer.main(args) and then do the initialization.  However,
when during initialization, I try to access JNDI via new
InitialContext() I get an error "Not in an application scope - start
Orion with the -userThreads switch if using user-created threads".  I
pass Java -DuserThreads on the command line.

Please help.

Thanks,
Vidur




Reply via email to