On Fri, 2002-11-15 at 11:07, Dmitri Colebatch wrote:
> > 2) If I have create a Entity Bean, and if I create Session Beans to make
> > the callback interface for the clients, I would have several Session
> > Beans for every client's request. But how many Entity Beans would I have
> > in my container? Only one, right? All Session Beans would go to the same
> > Entity Bean?
>
> in this context it is not clear what you mean by "Entity Bean".  Depending
> on the container's implementation and configuration you may or may not have
> more than one instances of the entity bean class.  Having said that I think
> all containers nowdays support a one-instance approach.  Access to the
> entity bean is then synchronized, to get concurrent access to data (only one
> client requiring a write lock) most containers also support multiple
> instances...

Well, I would like to have just one graph instance (probably a BMP
Entity Bean as you suggested), because it can be very heavy in
consumption of memory, and I cannot permit that the container create
more than one instance like stateless session beans instances. So I
would like that session beans make requests to the initialized graph
data of the entity bean (always the same). And, I can tell that the
initialize time of a graph would be a long and not acceptable to answer
a request in real time. So besides the large amount of memory a graph
(~entity bean) would need, the initialize time would be not satisfactory
to handle requests each time a entity bean would be created.

Probably, I would map my graph data to the session beans which would run
the Dijkstra algorithm.

So, can you point me some topics to configure a BMP Entity Bean to be
just instance bean? I'm using JBOSS 3.x.

pedro

--
pedro salazar (pt-inovacao) <[EMAIL PROTECTED]>
key id: D803BC61

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to