Limits:
- JBoss AS 5.
- Business logic based on stateless EJB3. Some methods very long calculate data process.
- Client based on Swing.
I want to:
- Various context of data storage (transactional, request, session context).
- Caching the result of calling methods in EJB3 (in context). Emulate pure function of the functional programming (Memoization).
Solutions:
- Statefull EJB.
- ThreadLocal variables.
- TransactionSynchronizationRegistry.
- Direct transfer of context.
- Others.
p/s Just now solution based on ThreadLocal variables.
p/s/s Sorry for my bad english.