This content has been marked as final.
Show 1 reply
-
1. Re: static initializer problem
adrian.brock Nov 17, 2002 3:50 PM (in response to sgcjr)Read the ejb spec.
Only "static final" can be used in an ejb.
Also, you are not allowed to do anything with
threads. This includes, threadlocal, sleep, wait,
synchronized, new Thread(), yield, etc.
The reason it doesn't work is because your bean is
pooled and so are the threads. There is no guarantee
that the same object or thread will be used in
different method invocations.
Regards,
Adrian