It might be a dumb question.
I don't see any importance of pooling stateless beans.
Why not a stateless bean is singleton (one per server in cluster environment).
I have got this doubt till now somany times but no one can clear this.
I would be thankful,if any one of you can help me in explaining main differences.
Whenever I implement a stateless bean, the work is almost like a singleton. Actually I gain performance with singleton (ofcourse). Then why should I use stateless beans in my environment.
One scenario is, I have configurator-component which needs to read configuration from file. Ofcourse this is singleton. why this component needs to be a stateless?
Thanks in advance,