hello everyone.....!!!
regarding stateless and stateful beans i have 2 questions...
1) do we have to make the beans stateless explicitly ? i mean to say k if i have one variable i in my stateless bean, to make it stateless i have to write code manually ?
and for 2nd question i am posting my code here
NOW USING SERVLETS
output :
this is stateful local bean:-30
this is stateless local bean:-30
this is stateful remote bean:-30
this is stateless remote bean:-46
// here the state of all the beans is maintained and as i refresh the page output will be
this is stateful local bean:-31
this is stateless local bean:-31
this is stateful remote bean:-31
this is stateless remote bean:-47
USING JSP
output first time ...
Stateless local bean :- 1
Stateful local bean :- 1
Stateless remote bean :- 1
Stateful remote bean :- 1
output when page is refreshed...
Stateless local bean :- 1
Stateful local bean :- 1
Stateless remote bean :- 2
Stateful remote bean :- 1
NOW I AM NOT GETTING THIS BEHAVIOUR....WHY IN JSP THE STATE FOR ONLY STATELESS REMOTE BEAN IS MAINTAINED ?
IS IT BUG OF
EJB 3.1 ? SOME EXPERT PLEASE COMMENT ON THIS..
Thanks in advance....