KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > systest > securebasic > WantAndNeedClientAuthInterServer


1 package org.objectweb.celtix.systest.securebasic;
2
3 import javax.xml.ws.Endpoint;
4
5 import org.objectweb.celtix.systest.common.TestServerBase;
6
7
8
9 public class WantAndNeedClientAuthInterServer extends TestServerBase {
10     
11     private String JavaDoc url;
12     
13     public WantAndNeedClientAuthInterServer(String JavaDoc urlParam) {
14         String JavaDoc configFile = getClass().getResource(".")
15                             + "WantAndNeedClientAuthInterServer.xml";
16         System.setProperty("celtix.config.file", configFile);
17         url = urlParam;
18     }
19     
20     protected void run() {
21         Object JavaDoc implementor = new InterGreeterImpl();
22         String JavaDoc address = url;
23         Endpoint.publish(address, implementor);
24     }
25     
26
27     public static void main(String JavaDoc[] args) {
28         
29         try {
30             WantAndNeedClientAuthInterServer requireClientAuth =
31                 new WantAndNeedClientAuthInterServer("https://localhost:9003/SoapContext/SoapPort");
32             requireClientAuth.start();
33         } catch (Exception JavaDoc ex) {
34             ex.printStackTrace();
35             System.exit(-1);
36         } finally {
37             System.out.println("done!");
38         }
39     }
40 }
41
Popular Tags