I am new to ejbs and I want to know whether a stateful session bean will be destroyed or not. I injected a stateful session bean in my servlet. Even after 30min I see that the bean is active. I am using jboss eap 6.0. I believe that HttpSession has nothing to do with a stateful session bean. I invalidated the HttpSession to make sure that HttpSession has nothing to do with the statful session bean. So what if my application has many users and for each user if I create a new bean, the performance of my server is brought down. How does the container manage stateful session beans. When is a bean removed or destroyed?
I read this post and few others. But I did not get clarity.