01: /*
02: * $Id: JmsClientAcknowledgeTransactionFactory.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
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: * <code>JmsClientAcknowledgeTransactionFactory</code> creates a JMS Client
20: * Acknowledge Transaction using a JMS Message.
21: */
22:
23: public class JmsClientAcknowledgeTransactionFactory implements
24: TransactionFactory {
25: /*
26: * (non-Javadoc)
27: *
28: * @see org.mule.api.TransactionFactory#beginTransaction(java.lang.Object)
29: */
30: public Transaction beginTransaction(MuleContext muleContext)
31: throws TransactionException {
32: JmsClientAcknowledgeTransaction tx = new JmsClientAcknowledgeTransaction();
33: tx.begin();
34: return tx;
35: }
36:
37: public boolean isTransacted() {
38: return false;
39: }
40:
41: }
|