Hi Preeti,
If you're app needs to start a new thread in an EJB, maybe you need to revisit your system design. Tim has given some pretty good ideas that you could possibly use.
Vikram,
The EJB spec
forbids doing all the things that you've mentioned.
To start thread from and EJB,I think you will need to write your own ClassLoader(MyClassLoader) and use this class loader to load your thread class in the session bean, further you may need to set your own security manger class in your class Loader.
Cheers,
Ryan
[ January 11, 2004: Message edited by: Ryan Fernandes ]
Unthinking respect for authority is the greatest enemy of truth. -Albert Einstein, physicist, Nobel laureate (1879-1955)