public class NonTxEmCloser extends Object
Modifier and Type | Field and Description |
---|---|
static ThreadLocalStack<Map<String,javax.persistence.EntityManager>> |
nonTxStack
Each thread will have its own list of SB invocations in progress.
|
Constructor and Description |
---|
NonTxEmCloser() |
Modifier and Type | Method and Description |
---|---|
static void |
add(String puScopedName,
javax.persistence.EntityManager entityManager) |
static javax.persistence.EntityManager |
get(String puScopedName)
Return the transactional entity manager for the specified scoped persistence unit name
|
static void |
popCall()
current session bean invocation is ending, close any transactional entity managers created without a JTA
transaction.
|
static void |
pushCall()
entered new session bean invocation, start new collection for tracking transactional entity managers created
without a JTA transaction.
|
public static final ThreadLocalStack<Map<String,javax.persistence.EntityManager>> nonTxStack
public static void pushCall()
public static void popCall()
public static javax.persistence.EntityManager get(String puScopedName)
puScopedName
- public static void add(String puScopedName, javax.persistence.EntityManager entityManager)
Copyright © 2015 JBoss by Red Hat. All rights reserved.