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
About Question enthuware.oce-ejbd.v6.2.372 :
Moderator: admin
-
- Posts: 47
- Joined: Mon Apr 08, 2013 7:55 pm
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.372 :
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.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 28 guests