Originally posted by Chandra Bairi:
When A logs in he creates the instance of the class and looks up the EJB and he calls some methods in the same ejb. will he keep the object with him until and unless he executes all the methods.
Therefore when user B logs in just after A he cannot get the instance of the class because user A already has acquired it and until and unless the user A releases it user B cannot get it. this would be same case for 10 users. I guess this would result in low performance. Is the reasoning correct.
No, you can have as many users use the object at the same time, *concurrently*, as you wish. This works without problems for stateless session beans - for statefull beans, some kind of synchronization might be necessary.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus