KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > transport > servlet > ServletInvokerTestClient


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

7 package org.jboss.test.remoting.transport.servlet;
8
9 import org.jboss.test.remoting.transport.web.WebInvokerTestClient;
10
11 /**
12  * @author <a HREF="mailto:tom.elrod@jboss.com">Tom Elrod</a>
13  */

14 public class ServletInvokerTestClient extends WebInvokerTestClient
15 {
16
17    public String JavaDoc getLocatorURI()
18    {
19       //return "servlet://localhost:8080/servlet-invoker/ServerInvokerServlet";
20
return "http://localhost:8080/servlet-invoker/ServerInvokerServlet";
21    }
22
23    public static void main(String JavaDoc[] args)
24    {
25       ServletInvokerTestClient client = new ServletInvokerTestClient();
26       try
27       {
28          client.testInvocation();
29       }
30       catch(Exception JavaDoc e)
31       {
32          e.printStackTrace();
33       }
34    }
35
36 }
Popular Tags