This content has been marked as final.
Show 2 replies
-
1. Re: EJB Pool
bill.burke Mar 18, 2004 12:56 AM (in response to mkyaj)entity instance is not created until you actually invoke a method on the entity.
JBoss 3.2.2RC1 and higher uses a pool and ejbLoad must be called.
If you're not using caching (commit A) there are prefetch strategies you can use like on-find to speed performance. -
2. Re: EJB Pool
mkyaj Mar 18, 2004 4:08 PM (in response to mkyaj)Hi Bill,
Thank you for the response.
I m using the on-load strategy. But my problem is instead of creating 100 instances in the EJBPool of that entity, can we create only some 10 instances and use the same for loading all entities.
So that i can reduce the setEntityContext() operation for all the entities. I think the setEntityContext() is more costly than ejbActivate().
Thank you.
Murali.