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

Moderator: admin

Post Reply
renatumb
Posts: 47
Joined: Mon Apr 08, 2013 7:55 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests