public abstract class JtaTransactionPolicy extends Object implements org.apache.camel.spi.TransactedPolicy
org.apache.camel.spring.spi.SpringTransactionPolicy
.
This class requires the resource TransactionManager
to be available
through JNDI url "java:/TransactionManager"
Modifier and Type | Class and Description |
---|---|
static interface |
JtaTransactionPolicy.Runnable |
Modifier and Type | Field and Description |
---|---|
protected TransactionManager |
transactionManager |
Constructor and Description |
---|
JtaTransactionPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
beforeWrap(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.model.ProcessorDefinition<?> definition) |
protected JtaTransactionErrorHandler |
createTransactionErrorHandler(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.Processor processor,
org.apache.camel.builder.ErrorHandlerBuilder builder) |
abstract void |
run(JtaTransactionPolicy.Runnable runnable) |
String |
toString() |
org.apache.camel.Processor |
wrap(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.Processor processor) |
protected TransactionManager transactionManager
public void beforeWrap(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.model.ProcessorDefinition<?> definition)
beforeWrap
in interface org.apache.camel.spi.Policy
public abstract void run(JtaTransactionPolicy.Runnable runnable) throws Throwable
Throwable
public org.apache.camel.Processor wrap(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.Processor processor)
wrap
in interface org.apache.camel.spi.Policy
protected JtaTransactionErrorHandler createTransactionErrorHandler(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.Processor processor, org.apache.camel.builder.ErrorHandlerBuilder builder)
Apache Camel