1 22 package org.jboss.test.jca.test; 23 24 import javax.resource.cci.Connection ; 25 26 32 public class ContentiousRecyclingInterleavingStressTestCase extends AbstractContentiousRecyclingPoolingStressTest 33 { 34 35 public void testIt() throws Throwable 36 { 37 tm.setTransactionTimeout(0); 38 ContentiousRecyclingPoolingRunnable[] runnables = new ContentiousRecyclingPoolingRunnable[getThreadCount()]; 39 for (int i = 0; i < runnables.length; ++i) 40 { 41 runnables[i] = new ContentiousRecyclingPoolingRunnable() 42 { 43 public void doRun1() throws Throwable 44 { 45 Connection c = cf.getConnection(); 46 c.close(); 47 } 48 }; 49 } 50 51 runConcurrentTest(runnables, null); 52 } 53 54 public ContentiousRecyclingInterleavingStressTestCase(String name) 55 { 56 super(name); 57 } 58 } 59 | Popular Tags |