Create og Remove Stateful SessionBeans i samme Transaktion ?
Er det ikke muligt at Create og Remove en Stateful SessionBean i samme Transaktion ?metoden creater Sessionen, kalder et par metoder, og hvis det sidste metodekald returnerer null, kaldes remove()
Det giver følgende fejl:
weblogic.ejb20.locks.LockTimedOutException: The lock request from EJB:UserSession with primary key:10.035.337.115.992.070 timed-out after waiting 0 ms. The transaction or thread requesting the lock was:Thread[ExecuteThread: '12' for queue: 'default',5,Thread Group for Queue: 'default'].
at weblogic.ejb20.locks.ExclusiveLockManager$LockBucket.lock(ExclusiveLockManager.java:448)
at weblogic.ejb20.locks.ExclusiveLockManager.lock(ExclusiveLockManager.java:258)
at weblogic.ejb20.manager.StatefulSessionManager.acquireLock(StatefulSessionManager.java:225)
at weblogic.ejb20.manager.StatefulSessionManager.acquireLock(StatefulSessionManager.java:215)
at weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManager.java:313)
at weblogic.ejb20.manager.StatefulSessionManager.remove(StatefulSessionManager.java:821)
at weblogic.ejb20.internal.StatefulEJBObject.remove(StatefulEJBObject.java:96)
at dk.organisator.ofuse.UserSessionBean_fm0pn9_EOImpl.remove(UserSessionBean_fm0pn9_EOImpl.java:440)