Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.372 :

Posted: Thu May 08, 2014 8:32 pm
by renatumb
If it was a @Stateless Session bean ?

Can I assume that the quantity of instances depends on the container ? Or what?

I have tested with @Stateless, only one instance was created but I dont know if this will always happen or it is by chance

Re: About Question enthuware.oce-ejbd.v6.2.372 :

Posted: Thu May 08, 2014 11:29 pm
by admin
The specification does not say anywhere that there can be only one instance of a stateless session bean. If you want exactly one instance, then you can use a Singleton stateless bean.

HTH,
Paul.