anonymous wrote : But it also mentions that stateless beans can be accessed 
concurrently. So, what prevents the injected variables from being overwritten 
by injection from another concurrent thread? 

The EJB container ensures this. Session Beans are NOT multithreaded, neither 
stateless session beans (SLSBs) nor stateful session beans.  

If you have two threads referencing a stateless session bean (in your example 
the threads A and B),  both threads operate on a different bean instance. 
Therefore it cannot happen that the interceptor for thread B overwrites the 
injections for thread A.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084202#4084202

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084202
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to