private static final Logger log = Logger.getLogger(TransactionEntityMap.class);
private final InjectedValue<TransactionManager> transactionManager = new InjectedValue<TransactionManager>();
private TransactionLocal txSynch;
public synchronized void start(StartContext context) throws StartException {
txSynch = new TransactionLocal(transactionManager.getValue()) {
public Transaction getTransaction() {
try {
return transactionManager.getTransaction();
} catch (SystemException e) {
throw MESSAGES.errorGettingCurrentTransaction(e);