1 /*
2 * $Id: JmsSingleTransactionComponentTestCase.java 10787 2008-02-12 18:51:50Z dfeist $
3 * --------------------------------------------------------------------------------------
4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5 *
6 * The software in this package is published under the terms of the CPAL v1.0
7 * license, a copy of which has been included with this distribution in the
8 * LICENSE.txt file.
9 */
10 package org.mule.transport.jms.integration;
11
12
13 /**
14 * There is a separate transaction for each service
15 * when single transaction(action: BEGIN_OR_JOIN) and jms transport are used
16 */
17 public class JmsSingleTransactionComponentTestCase extends AbstractJmsFunctionalTestCase
18 {
19 protected String getConfigResources()
20 {
21 return "providers/activemq/jms-single-tx-component.xml";
22 }
23
24 public void testSingleTransactionComponent() throws Exception
25 {
26 send(scenarioCommit);
27 // Receive message but roll back transaction.
28 receive(scenarioRollback);
29 // Receive message again and commit transaction.
30 receive(scenarioCommit);
31 // Verify there is no more message to receive.
32 receive(scenarioNotReceive);
33 }
34 }