We have one EJB bean in our Application which is Stateful and we are facing many issues in production as the bean gets destroyed when it moves to passivation.
So we thought of changing it to stateless. As we have few instance variables in the EJB bean, changing it to stateless causing problem(kind of thread problems).
Now, we want it to be stateless but there shouldnt be any other problem. Could you please suggest me any other solution?