Search |
||
Adam Bien: How to Pass Context between Layers with threadlocal and EJB 3.(1)Adam Bien demonstrates How to Pass Context between Layers with threadlocal and EJB 3.(1): TransactionSynchronizationRegistry is the way to go - you don't have to worry about the existence of multiple thread pools. However it only works inside a transaction. If you need to pass the context from the web layer (before a transaction is initiated), to the EJB container, where the transaction actually starts, you cannot use TransactionSynchronizationRegistry...
Community:
Java Enterprise »
|
||
|
|