tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <jean-louis.monte...@atosorigin.com>
Subject Re: Session Bean pooling
Date Tue, 17 Nov 2009 12:32:00 GMT

Hello,

you can set the max pool size to 1.
Another way should be to use Singleton beans (new feature in EJB 3.1 and
already available in OpenEJB).

Regards,
Jean-Louis


Mansour Al Akeel wrote:
> 
> Hello All:
> I am new to EJB in general. We need to simulate an emergency system,
> to study the resources interaction. The main actors are police agents,
> ambulance, Fire department.
> The idea is to create a session bean for each of these actors, and
> specify how many one available at any time and ready to respond to an
> emergency call. Each server represents a federate.
> I am still in the design phase. The issue I am facing is, specifying
> the number of available instances of an object. Knowing that session
> beans doesn't support counting instances,
> what would be the alternative ?
> 
> Thank you.
> 
> 

-- 
View this message in context: http://old.nabble.com/Session-Bean-pooling-tp26389012p26389106.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message