We don´t dispose the session. As we are running in a CMT environment, the session is disposed automatically after transaction is finished by the container. If you look at the test of jBPM sources I point out (PerRequestRuntimeManagerTest.testCreationOfSessionWithinTransaction) you can see that the session isn´t disposed explicitly, but by the transaction syncronization (DisposeSessionTransactionSynchronization), registered by jBPM.
Any help would be appreciated.
Thanks in advance.
Pablo