public TransactionManager createTransactionManager(Connection connection) { return new JdbcTransactionManager(connection, isAutoCommit()); }
public final void executeExecutionLifecycleCleanup(ExecutionContext executionContext) { // This guarantees Datasource resource cleanup (at the end of an ExecutionContext lifecycle) in // situations where the Smooks filter operation has terminated prematurely i.e. where the // executeVisitLifecycleCleanup event method was not called... unbind(executionContext); }
public final void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { bind(executionContext); }
@Override public TransactionManager createTransactionManager(Connection connection) { switch(transactionManagerType) { case JDBC: return new JdbcTransactionManager(connection, isAutoCommit()); case JTA: return new JtaTransactionManager(connection, (UserTransaction)lookup(transactionJndi), setAutoCommitAllowed); case EXTERNAL: return new ExternalTransactionManager(connection, isAutoCommit(), setAutoCommitAllowed); default: throw new SmooksException("The TransactionManager type '" + transactionManagerType + "' is unknown. This is probably a bug!"); } } }
@Override public TransactionManager createTransactionManager(Connection connection) { switch(transactionManagerType) { case JDBC: return new JdbcTransactionManager(connection, isAutoCommit()); case JTA: return new JtaTransactionManager(connection, (UserTransaction)lookup(transactionJndi), setAutoCommitAllowed); case EXTERNAL: return new ExternalTransactionManager(connection, isAutoCommit(), setAutoCommitAllowed); default: throw new SmooksException("The TransactionManager type '" + transactionManagerType + "' is unknown. This is probably a bug!"); } } }
public TransactionManager createTransactionManager(Connection connection) { return new JdbcTransactionManager(connection, isAutoCommit()); }
public final void executeExecutionLifecycleCleanup(ExecutionContext executionContext) { // This guarantees Datasource resource cleanup (at the end of an ExecutionContext lifecycle) in // situations where the Smooks filter operation has terminated prematurely i.e. where the // executeVisitLifecycleCleanup event method was not called... unbind(executionContext); }
public final void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { bind(executionContext); }
@Override public TransactionManager createTransactionManager(Connection connection) { switch(transactionManagerType) { case JDBC: return new JdbcTransactionManager(connection, isAutoCommit()); case JTA: return new JtaTransactionManager(connection, (UserTransaction)lookup(transactionJndi), setAutoCommitAllowed); case EXTERNAL: return new ExternalTransactionManager(connection, isAutoCommit(), setAutoCommitAllowed); default: throw new SmooksException("The TransactionManager type '" + transactionManagerType + "' is unknown. This is probably a bug!"); } } }
public TransactionManager createTransactionManager(Connection connection) { return new JdbcTransactionManager(connection, isAutoCommit()); }
public final void executeExecutionLifecycleCleanup(ExecutionContext executionContext) { // This guarantees Datasource resource cleanup (at the end of an ExecutionContext lifecycle) in // situations where the Smooks filter operation has terminated prematurely i.e. where the // executeVisitLifecycleCleanup event method was not called... unbind(executionContext); }
public final void visitBefore(Element element, ExecutionContext executionContext) throws SmooksException { bind(executionContext); }
@Override public TransactionManager createTransactionManager(Connection connection) { switch(transactionManagerType) { case JDBC: return new JdbcTransactionManager(connection, isAutoCommit()); case JTA: return new JtaTransactionManager(connection, (UserTransaction)lookup(transactionJndi), setAutoCommitAllowed); case EXTERNAL: return new ExternalTransactionManager(connection, isAutoCommit(), setAutoCommitAllowed); default: throw new SmooksException("The TransactionManager type '" + transactionManagerType + "' is unknown. This is probably a bug!"); } } }
public TransactionManager createTransactionManager(Connection connection) { return new JdbcTransactionManager(connection, isAutoCommit()); }
public final void executeExecutionLifecycleCleanup(ExecutionContext executionContext) { // This guarantees Datasource resource cleanup (at the end of an ExecutionContext lifecycle) in // situations where the Smooks filter operation has terminated prematurely i.e. where the // executeVisitLifecycleCleanup event method was not called... unbind(executionContext); }
public final void visitBefore(Element element, ExecutionContext executionContext) throws SmooksException { bind(executionContext); }
public final void executeVisitLifecycleCleanup(Fragment fragment, ExecutionContext executionContext) { unbind(executionContext); }
public final void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { bind(executionContext); }
public final void executeVisitLifecycleCleanup(Fragment fragment, ExecutionContext executionContext) { unbind(executionContext); }
public final void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { bind(executionContext); }