1 22 package org.jboss.test.jms.mbeans; 23 24 import javax.transaction.xa.XAResource ; 25 26 import org.jboss.jms.recovery.XAResourceWrapper; 27 import org.jboss.system.ServiceMBeanSupport; 28 29 35 public class XAResourceWrapperSmokeTester extends ServiceMBeanSupport implements XAResourceWrapperSmokeTesterMBean 36 { 37 38 private String providerName; 39 40 public String getProviderName() 41 { 42 return providerName; 43 } 44 45 public void setProviderName(String providerName) 46 { 47 this.providerName = providerName; 48 } 49 50 public void smokeTest() throws Exception 51 { 52 XAResourceWrapper wrapper = new XAResourceWrapper(); 53 try 54 { 55 wrapper.setProviderName("DefaultJMSProvider"); 56 wrapper.recover(XAResource.TMSTARTRSCAN); 57 } 58 finally 59 { 60 wrapper.close(); 61 } 62 } 63 } 64 | Popular Tags |