public Transaction getCurrentTransaction() { final LocalTransactionContext current = LocalTransactionContext.getCurrent(); try { current.importProviderTransaction(); } catch (SystemException e) { throw new RuntimeException("InboundTransactionCurrentImpl unable to determine inbound transaction context", e); } try { return ContextTransactionManager.getInstance().suspend(); } catch (SystemException e) { throw new RuntimeException("InboundTransactionCurrentImpl unable to suspend inbound transaction context", e); } } }
@Override public void filter(ContainerRequestContext requestContext) throws IOException { try { // pull in any RTS transaction LocalTransactionContext.getCurrent().importProviderTransaction(); } catch (SystemException se) { throw RTSLogger.ROOT_LOGGER.failueOnImportingGlobalTransactionFromWildflyClient(se); } }
public Transaction getCurrentTransaction() { final LocalTransactionContext current = LocalTransactionContext.getCurrent(); try { current.importProviderTransaction(); } catch (SystemException e) { throw new RuntimeException("InboundTransactionCurrentImpl unable to determine inbound transaction context", e); } try { return ContextTransactionManager.getInstance().suspend(); } catch (SystemException e) { throw new RuntimeException("InboundTransactionCurrentImpl unable to suspend inbound transaction context", e); } } }
public Transaction getCurrentTransaction() { final LocalTransactionContext current = LocalTransactionContext.getCurrent(); try { current.importProviderTransaction(); } catch (SystemException e) { throw new RuntimeException("InboundTransactionCurrentImpl unable to determine inbound transaction context", e); } try { return ContextTransactionManager.getInstance().suspend(); } catch (SystemException e) { throw new RuntimeException("InboundTransactionCurrentImpl unable to suspend inbound transaction context", e); } } }
context.putPrivateData(ComponentView.class, componentView); LocalTransactionContext.getCurrent().importProviderTransaction(); context.setTransaction(ContextTransactionManager.getInstance().getTransaction()); if (forceTargetBean) {
context.putPrivateData(ComponentView.class, componentView); LocalTransactionContext.getCurrent().importProviderTransaction(); context.setTransaction(ContextTransactionManager.getInstance().getTransaction()); if (forceTargetBean) {