-
1. Re: Entity Bean Explosion?
aloubyansky Mar 17, 2004 4:01 AM (in response to idxp)When an instance is passivated it is evicted from the cache. No resources are occupied.
-
2. Re: Entity Bean Explosion?
idxp Mar 19, 2004 12:32 AM (in response to idxp)If an entity bean is evicted from cache, where it will go?
I think the instance will be returned to pool. But where is the context of the instance? Is it totally stored in DB? Or it will remain some tracking records on app server?
How about if I create 1 million beans and then come back to call the first bean created, which has been passivated?
According sun's spec, container will call ejbActive () to get an instance from pool, give it an context(associate it with the EJB object) and then use it. Question is, where the app server gets the context for the bean? Totally from DB or somewhere on app server? -
3. Re: Entity Bean Explosion?
darranl Mar 19, 2004 6:12 AM (in response to idxp)Are you reading the spec for session beans or entity beans?
-
4. Re: Entity Bean Explosion?
aloubyansky Mar 19, 2004 9:49 AM (in response to idxp)> I think the instance will be returned to pool. But where is the context of the instance?
It is thrown away.
> Question is, where the app server gets the context for the bean?
Just creates a new instance. -
5. Re: Entity Bean Explosion?
idxp Mar 22, 2004 3:08 AM (in response to idxp)Ok....
If this is what Jboss does, I will feel comfort using it in my project.
Thanks a lot!"loubyansky" wrote:
> I think the instance will be returned to pool. But where is the context of the instance?
It is thrown away.
> Question is, where the app server gets the context for the bean?
Just creates a new instance.