It's about Branch_3_2.
alex
Saturday, July 05, 2003, 4:41:37 PM, Alexey Loubyansky wrote:
AL> In EntitySynchronizationInterceptor, in the inner class
AL> InstanceSynchronization in afterCompletion in case
AL> of commit option C the following code will not release the context:
AL> case ConfigurationMetaData.C_COMMIT_OPTION:
AL> try
AL> {
AL> // Do not call release if getId() is null. This means that
AL> // the entity has been removed from cache.
AL> // release will schedule a passivation and this removed ctx
AL> // could be put back into the cache!
AL> if (ctx.getId() != null)
AL> {
AL> container.getInstanceCache().release(ctx);
AL> }
AL> }
AL> catch (Exception e)
AL> {
AL> if( log.isDebugEnabled() )
AL> log.debug("Exception releasing context", e);
AL> }
AL> break;
AL> The lock for the context is acquired in InstanceSynchronization
AL> constructor and released in afterCompletion in the finally block, i.e.
AL> after commit options are handled.
AL> So, in the constructor of InstanceSynchronization we lock first
AL> time (reference count is 1). InstanceCache.release() ->
AL> AbstractInstanceCache.tryToPassivate() will lock again (reference
AL> count is 2).
AL> Finally, BeanLockManager.canPassivate(Object id) agrees to passivate
AL> if lock.getRefs() <= 1.
AL> Any ideas how to fix this?
AL> Thanks,
AL> alex
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development