Hi All,
We are using
EJB stateless Bean to expose a Web-service. this Stateless Bean is having a Statefull Bean as instance variable. As of now the web-service is working fine and i don't have any issues, the reason why we have sate full bean is to Avoid creating proxy object used by the web-service more than once, And these proxy reside inside the statefull beans.
My Question is is that advisible to have a statefull Bean inside the stateless Bean. i have read in EJB3 in Action. that stateful bean should not be used inside stateless bean. However their is no justification why it not be used like this. So i request to share your thoughts and correct me if iam wrong.
thanks
Amir