KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > jms > connector > JMSConnectorInvoker


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.jms.connector;
8
9 import java.lang.reflect.Method JavaDoc;
10
11 import org.jfox.ioc.connector.AbstractConnectorInvoker;
12 import org.jfox.ioc.connector.ConnectorRemote;
13 import org.jfox.ioc.connector.ObjectId;
14
15 /**
16  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
17  */

18
19 public class JMSConnectorInvoker extends AbstractConnectorInvoker {
20
21     public JMSConnectorInvoker(ObjectId clientId, ConnectorRemote remote) {
22         super(clientId, remote);
23     }
24
25     protected Object JavaDoc doInvoke(Object JavaDoc proxy, Method JavaDoc method, Object JavaDoc[] args) throws Throwable JavaDoc {
26         JMSInvocation invocation = new JMSInvocation(getClientId(), getMethodHash(method), args);
27         return remote.invoke(invocation);
28     }
29
30     public static void main(String JavaDoc[] args) {
31
32     }
33 }
34
Popular Tags