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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user