1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.jdbc;
12
13 import org.mule.api.MuleContext;
14 import org.mule.api.transaction.Transaction;
15 import org.mule.api.transaction.TransactionException;
16 import org.mule.api.transaction.TransactionFactory;
17
18
19
20
21 public class JdbcTransactionFactory implements TransactionFactory
22 {
23
24
25
26
27
28
29 public Transaction beginTransaction(MuleContext muleContext) throws TransactionException
30 {
31 JdbcTransaction tx = new JdbcTransaction();
32 tx.begin();
33 return tx;
34 }
35
36
37
38
39
40
41 public boolean isTransacted()
42 {
43 return true;
44 }
45
46 }