I initially noticed that my sessions were timing out
even though they were being accessed throughout the
timeout period. After some testing I identified the
fact that session.awake() was not being executed.
After further investigation I realized that because
sessions are not created or retrieved until requested,
there is never a session stored in the transaction for
it to awake() during the transaction's own awake() cycle.
As a simple fix I have added
application.createSessionForTransaction() after a
session is retrieved. Here is the diff output for the
- Aaron Switzer