[jboss-cvs] JBossAS SVN: r71722 - branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jca/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 4 09:59:19 EDT 2008
Author: clebert.suconic at jboss.com
Date: 2008-04-04 09:59:18 -0400 (Fri, 04 Apr 2008)
New Revision: 71722
Modified:
branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jca/test/ExecuteJMSDuringRollbackStressTestCase.java
Log:
Adding a simpler test for JBPAPP-750
Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jca/test/ExecuteJMSDuringRollbackStressTestCase.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jca/test/ExecuteJMSDuringRollbackStressTestCase.java 2008-04-04 11:37:04 UTC (rev 71721)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jca/test/ExecuteJMSDuringRollbackStressTestCase.java 2008-04-04 13:59:18 UTC (rev 71722)
@@ -65,6 +65,32 @@
private AtomicReference<Transaction> transaction = new AtomicReference<Transaction>();
+ public void testCreateSession() throws Throwable
+ {
+
+ // We can remove those log.info after this test is fixed.
+ // At the moment is better to keep then, so it is easier to analyze log files
+ log.info("++++testCreateSession");
+ cf = (ConnectionFactory) new InitialContext().lookup("java:TestJmsLocal");
+ tm.begin();
+ log.info("Transaction is "+tm.getTransaction());
+ Connection c = cf.createConnection();
+ tm.commit();tm.begin();
+ log.info("Transaction is "+tm.getTransaction());
+
+ log.info("");
+ log.info("*************************************************************************************");
+ log.info("***************************** opening a session now!!!!!!!!!!!!!!!!!!");
+
+ Session s = c.createSession(true, Session.SESSION_TRANSACTED);
+ log.info("----> Commit right after open");
+ tm.commit();tm.begin();
+ s.close();
+ log.info("----> Commit right after close");
+ tm.commit();tm.begin();
+ log.info("----> Done!");
+ }
+
public void testExecuteJMSDuringRollback() throws Throwable
{
log.info("Transaction is "+tm.getTransaction());
More information about the jboss-cvs-commits
mailing list