I have a MDB and set max session to 10 in order to improve performance. so I have 10 threads for this mdb.
inside the mdb,a same stateless session bean is used in different methods. No data is shared in the session bean, just make logic calls
should I create a member varible in mdb that all threads can share or use jndi to get seesion bean each time to make a logic call?
first solution will only use one session bean, if different threads use the same method concurrently, will cause any problem?looks like a baisc question, but I am just not very sure.
second one will hurt performance
Thanks