KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > examples > interceptor > SecurityServiceClient


1 package org.sapia.ubik.rmi.examples.interceptor;
2
3 import org.sapia.ubik.rmi.server.Hub;
4
5
6 /**
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public class SecurityServiceClient {
15   public static void main(String JavaDoc[] args) {
16     try {
17       SecurityService sec = (SecurityService) Hub.connect("localhost", 6767);
18       sec.call();
19     } catch (Exception JavaDoc e) {
20       e.printStackTrace();
21     }
22   }
23 }
24
Popular Tags