1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.jms;
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
22 public class JmsTransactionFactory implements TransactionFactory
23 {
24 private String name;
25
26
27
28
29
30
31 public Transaction beginTransaction(MuleContext muleContext) throws TransactionException
32 {
33 JmsTransaction tx = new JmsTransaction();
34 tx.begin();
35 return tx;
36 }
37
38 public boolean isTransacted()
39 {
40 return true;
41 }
42
43 public String getName()
44 {
45 return name;
46 }
47
48 public void setName(String name)
49 {
50 this.name = name;
51 }
52 }