Skip to content

Commit

Permalink
InheritableThreadLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
xlorne committed Feb 27, 2018
1 parent 5fe0f0e commit bd3df72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
public class TxCompensateLocal {

private final static ThreadLocal<TxCompensateLocal> currentLocal = new ThreadLocal<TxCompensateLocal>();
private final static ThreadLocal<TxCompensateLocal> currentLocal = new InheritableThreadLocal<TxCompensateLocal>();

private String groupId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TxTransactionLocal {

private Logger logger = LoggerFactory.getLogger(TxTransactionLocal.class);

private final static ThreadLocal<TxTransactionLocal> currentLocal = new ThreadLocal<TxTransactionLocal>();
private final static ThreadLocal<TxTransactionLocal> currentLocal = new InheritableThreadLocal<TxTransactionLocal>();

private String groupId;

Expand Down

0 comments on commit bd3df72

Please sign in to comment.