Great! Thanks for help!
Cedric Hurst wrote: > > I think you're on the right track. In order to exploit the features of > statefulness, you want to hang on to the bean reference throughout the > session. For instance, if you did: > > counter = ""+myCounter.getCounter() + " " myCounter.getCounter() + " " > myCounter.getCounter() > > ... you should start to see the counter increment in the manner you > intend. If you'd done this with stateless beans, each method call would > return 1. > > To preserve session state across multiple http requests from the same > browser session, try adding the stateful bean reference to the > request.getSession(). Then, look to see if the reference is null before > creating a new stateful session bean. > -- View this message in context: http://www.nabble.com/geronimo-newbie---stateful-session-bean-tp14762838s134p14824333.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
