KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > net > jmx > adaptor > RemoteAdaptorInvocationHandler


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: RemoteAdaptorInvocationHandler.java,v 1.5 2004/03/26 03:56:45 starksm Exp $
9

10 package org.jboss.net.jmx.adaptor;
11
12 import org.jboss.net.jmx.MBeanInvocationHandler;
13
14 import java.net.URL JavaDoc;
15
16 /**
17  * An example client that accesses the JMXConnector via SOAP.
18  * @deprecated You should use the jaxrpc/wsdl approach instead.
19  * @created 1. October, 2001
20  * @author <a HREF="mailto:Christoph.Jung@infor.de">Christoph G. Jung</a>
21  * @version $Revision: 1.5 $
22  */

23
24 public class RemoteAdaptorInvocationHandler
25 {
26
27    public static RemoteAdaptor createRemoteAdaptor(URL JavaDoc targetURL, String JavaDoc soapAction)
28    {
29       return (RemoteAdaptor) MBeanInvocationHandler.createMBeanService(RemoteAdaptor.class, targetURL, soapAction);
30    }
31
32    public static RemoteAdaptor createRemoteAdaptor(MBeanInvocationHandler handler)
33    {
34       return (RemoteAdaptor) MBeanInvocationHandler.createMBeanService(RemoteAdaptor.class, handler);
35    }
36
37 }
38
Popular Tags