I have a stateful session bean with 2 public class level variables. I am assuming that once the values are set, they will be saved for the duration of the session, but it's not happening that way. The two variables are ArrayList objects. I have set my ejb deployment correctly to stateful and container configureation to Standard Stateful Session Bean. What am I missing? Please let me know if you have any helpful hints on how to get statful session bean to store class level variables between method calls.
For those of you who may have similiar problems, I am posting my solution. The problem was that the session beans were instantiaed multiple times in different tag libraries, so each method called on its own instance. I had to make sure only one instance of the session bean was instantiaed per session.