1 22 package org.jboss.test.recover.interfaces; 23 24 import javax.transaction.xa.XAResource ; 25 26 import org.jboss.aop.Dispatcher; 27 import org.jboss.aspects.remoting.Remoting; 28 29 36 public class RemoteDummyRecoverable extends DummyRecoverable 37 { 38 private XAResource resourceProxy; 39 40 public RemoteDummyRecoverable() 41 { 42 } 43 44 public RemoteDummyRecoverable(String id) 45 throws Exception 46 { 47 super(id, new DummyXAResourceImpl()); 48 Dispatcher.singleton.registerTarget("XAResource/" + id, 49 super.getResource()); 50 resourceProxy = (XAResource )Remoting.createRemoteProxy( 51 "XAResource/" + id, 52 DummyXAResourceImpl.class, 53 "socket://0.0.0.0:5150"); 54 } 55 56 public XAResource getResource() 57 { 58 return resourceProxy; 59 } 60 61 } 62 | Popular Tags |