You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by tom chen <to...@yahoo.com> on 2005/02/05 07:03:39 UTC
NOBODY HELP ON THIS ONE!!! Re: question on service object state on "application/session" scoped service
NOBODY HELP ON THIS ONE!!!
tom chen <to...@yahoo.com> wrote:Hello All,
I published an application scoped.service. why does the service object not keep the object's state. There is only one object created?
as
class AService{
private int lastValue=0;
public void setLastValue(int v){
lastValue=v;
}
public int getLastValue(){
return lastValue;
}
}
calling
setLastValue(100);
getLastValue(); return 0
etLastValue(200);
getLastValue(); return 0
why?? Please help me.
Thank you very much!
--tom
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com