1 22 package org.jboss.tm.remoting.server; 23 24 import javax.management.MBeanServer ; 25 26 import org.jboss.remoting.InvocationRequest; 27 import org.jboss.remoting.ServerInvocationHandler; 28 import org.jboss.remoting.ServerInvoker; 29 import org.jboss.remoting.callback.InvokerCallbackHandler; 30 import org.jboss.tm.remoting.Invocation; 31 32 38 public class DTMInvocationHandler implements ServerInvocationHandler 39 { 40 private DTMServant dtmServant; 41 private ServerInvoker invoker; 42 43 DTMInvocationHandler(DTMServant dtmServant) 44 { 45 this.dtmServant = dtmServant; 46 } 47 48 52 public void setMBeanServer(MBeanServer server) 53 { 54 } 55 56 60 public void setInvoker(ServerInvoker invoker) 61 { 62 this.invoker = invoker; 63 } 64 65 69 public Object invoke(InvocationRequest invocationRequest) 70 throws Throwable 71 { 72 Invocation invocation = (Invocation)invocationRequest.getParameter(); 73 74 return invocation.perform(invoker.getLocator(), dtmServant); 75 } 76 77 81 public void addListener(InvokerCallbackHandler callbackHandler) 82 { 83 } 84 85 89 public void removeListener(InvokerCallbackHandler callbackHandler) 90 { 91 } 92 93 } 94 | Popular Tags |