This was wrong also :( The cache avoids my rerun of setEntityContext. OK. But the cache only works for remote methods, not for home methods Whenever I call a home method a new instance of the entity is created, that is the overhead I have. I could solve that by pushing back the context to the pool in EntityInstanceInterceptor.invokeHome but I don't understand the reason for the reclaim flag (it is false for home methods, then AbstractInstancePool discard and recreate a new instance which is the same as not putting the context to the pool) Should I test the ID inside the context and if null then do like reclaim ? I could not see a erason why this should not be done for instances that have been created for home methods calling and that have so no real data in them. This works fine for me, should I run other tests to proove this is ok ? Please give me some feedback.
Vincent. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On > Behalf Of Vincent Harcq > Sent: lundi 3 d�cembre 2001 2:49 > To: 'Development JBoss' > Subject: RE: [JBoss-dev] setEntityContext called at pool push > time (because of reclaim usage in EntityInstancePool) > > > My last post is wrong, it is in fact a lot more simple: > > JBOSS 2.4.4 almost latest CVS > > Entity instances are created by the pool on the get() method > The creation is followed by setEntityContext The problem is > that the free() method is never called on EntityInstancePool > (except by the passivation method). So an entity bean is > never push to the pool. So the pool is always empty for > entity beans. So on my next call, the > instanciation/setEntityContext happens again. > > That's why I see a lot of setEntityContext() happening and > this why I see this this as a performance killer because I do > a lot of jndi lookup there. > > Is this a normal behaviour or does it hide something ? > > Regards. > Vincent. > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Jboss-development mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
