[jboss-user] [EJB 3.0] - Why SLSB maintain state between method invocation?
kingofhawks
do-not-reply at jboss.com
Thu Jul 13 05:45:24 EDT 2006
Hi:
I have written a SLSB like following:
public @Stateless class SwitchHealthMgrBean implements SwitchHealthMgrLocal,SwitchHealthMgrRemote {
private Logger logger=Logger.getLogger(SwitchHealthMgrBean.class);
private int count=0;
public void start() {
count=1;
logger.info("Count#"+count);
}
public void stop() {
logger.info("Count#"+count);
}
}
And i have written a client(JSP page) to first invoke start(),second invoke stop(),the logger info indicates that it has maintained state between method invocation!
Anyone can tell me why?
Best Regards!
Kingofhawks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957671#3957671
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957671
More information about the jboss-user
mailing list