-
1. Re: Stateless Session Beans and Threads
adrian.brock Mar 20, 2003 8:13 PM (in response to agb1)You'll have to state more clearly what you are
trying to achieve.
The spec makes no guarantees about which threads
an invocation runs on. In fact it
forbids ejbs from doing anything with threads.
Regards,
Adrian -
2. Re: Stateless Session Beans and Threads
agb1 Mar 21, 2003 3:01 AM (in response to agb1)I'll explain a bit more about my application. My SLSBs connect to an object-oriented database (Versant). The SSLBs connect via a Data Access Object. There can only be one DAO per thread (enforced by the database) - this is how I know the SSLBs sometimes start in the same or different threads.
I had originally presumed (wrongly) that each SLSB would start in a different thread.
I'm not trying to spawn any new threads from within the bean - I know you are forbidden from doing this. What I would like to know is the rules for how JBOSS deals with multithreading of beans.
Regards,
Andy -
3. Re: Stateless Session Beans and Threads
agb1 Mar 21, 2003 3:04 AM (in response to agb1)I'll explain a bit more about my application. My SLSBs connect to an object-oriented database (Versant). The SSLBs connect via a Data Access Object. There can only be one DAO per thread (enforced by the database) - this is how I know the SSLBs sometimes start in the same or different threads.
I had originally presumed (wrongly) that each SLSB would start in a different thread.
I'm not trying to spawn any new threads from within the bean - I know you are forbidden from doing this. What I would like to know is the rules for how JBOSS deals with multithreading of beans.
Regards,
Andy