1 22 package org.jboss.test.recover.bean; 23 24 import org.jboss.test.recover.interfaces.DummyRecoverable; 25 import org.jboss.test.recover.interfaces.DummyXAResourceImpl; 26 import org.jboss.system.ServiceMBeanSupport; 27 import org.jboss.tm.recovery.Recoverable; 28 import org.jboss.tm.recovery.RecoveryManagerServiceMBean; 29 30 36 public class DummyRecoverableService extends ServiceMBeanSupport 37 { 38 private Recoverable recoverable; 39 40 private String id; 41 private RecoveryManagerServiceMBean manager; 42 43 public String getId() 44 { 45 return id; 46 } 47 48 public void setId(String id) 49 { 50 this.id = id; 51 } 52 53 public Recoverable getRecoverable() 54 { 55 return recoverable; 56 } 57 58 public void setManager(RecoveryManagerServiceMBean manager) 59 { 60 this.manager = manager; 61 } 62 63 protected void startService() throws Exception 64 { 65 super.startService(); 66 recoverable = new DummyRecoverable(id, new DummyXAResourceImpl()); 67 manager.registerRecoverable(recoverable); 68 } 69 70 71 } 72 | Popular Tags |