KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > server > JMXInvokerEndpoint


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 // $Id: JMXInvokerEndpoint.java,v 1.1.2.2 2005/03/02 14:32:32 tdiesler Exp $
9
package org.jboss.webservice.server;
10
11 // $Id: JMXInvokerEndpoint.java,v 1.1.2.2 2005/03/02 14:32:32 tdiesler Exp $
12

13 import org.jboss.axis.MessageContext;
14 import org.jboss.logging.Logger;
15
16 import java.lang.reflect.Method JavaDoc;
17
18 /**
19  * A generic service endpoint POJO that delegates invocations to an arbitary MBean.
20  *
21  * @author Thomas.Diesler@jboss.org
22  * @since 30-Sep-2004
23  */

24 public class JMXInvokerEndpoint
25 {
26    // provide logging
27
private Logger log = Logger.getLogger(JMXInvokerEndpoint.class);
28
29    /**
30     * This method encapsulates the method invocation.
31     *
32     * @param msgContext MessageContext
33     * @param method the target method.
34     * @param obj the target object
35     * @param argValues the method arguments
36     */

37    protected Object JavaDoc invoke(MessageContext msgContext, Method JavaDoc method, Object JavaDoc obj, Object JavaDoc[] argValues)
38            throws Exception JavaDoc
39    {
40       log.debug("Invoke JMX: " + method);
41
42       // invoke the bean method
43
Object JavaDoc retObj = null;
44       return retObj;
45    }
46 }
47
Popular Tags