1 6 7 package org.jfox.jms.connector; 8 9 import java.lang.reflect.Method ; 10 11 import org.jfox.ioc.connector.AbstractConnectorInvoker; 12 import org.jfox.ioc.connector.ConnectorRemote; 13 import org.jfox.ioc.connector.ObjectId; 14 15 18 19 public class JMSConnectorInvoker extends AbstractConnectorInvoker { 20 21 public JMSConnectorInvoker(ObjectId clientId, ConnectorRemote remote) { 22 super(clientId, remote); 23 } 24 25 protected Object doInvoke(Object proxy, Method method, Object [] args) throws Throwable { 26 JMSInvocation invocation = new JMSInvocation(getClientId(), getMethodHash(method), args); 27 return remote.invoke(invocation); 28 } 29 30 public static void main(String [] args) { 31 32 } 33 } 34 | Popular Tags |