1 9 package org.jboss.ejb3.remoting; 10 11 import org.jboss.remoting.InvocationRequest; 12 import org.jboss.remoting.InvokerCallbackHandler; 13 import org.jboss.remoting.ServerInvocationHandler; 14 import org.jboss.remoting.ServerInvoker; 15 16 import javax.management.MBeanServer ; 17 18 25 public class EJB3RemotingInvocationHandler implements ServerInvocationHandler 26 { 27 private ServerInvoker invoker; 28 private MBeanServer server; 29 30 public EJB3RemotingInvocationHandler() 31 { 32 super(); 33 } 34 35 40 public void setInvoker(ServerInvoker invoker) 41 { 42 this.invoker = invoker; 43 } 44 45 50 public void setMBeanServer(MBeanServer server) 51 { 52 this.server = server; 53 } 54 55 59 public synchronized void destroy() 60 { 61 } 62 63 protected void finalize() throws Throwable 64 { 65 destroy(); 66 super.finalize(); 67 } 68 69 public Object invoke(InvocationRequest invocation) 70 throws Throwable 71 { 72 77 throw new RuntimeException ("ABORT NOT USED ANYMORE"); 78 } 79 80 86 public void addListener(InvokerCallbackHandler callbackHandler) 87 { 88 } 90 91 97 public void removeListener(InvokerCallbackHandler callbackHandler) 98 { 99 } 101 } 102 | Popular Tags |