KickJava   Java API By Example, From Geeks To Geeks.

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


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 WantAndNeedClientAuthServerClientPropertiesSet extends TestServerBase {
10     
11     private String JavaDoc url;
12     
13     public WantAndNeedClientAuthServerClientPropertiesSet(String JavaDoc urlParam) {
14         String JavaDoc configFile = getClass().getResource(".")
15             + "WantAndNeedClientAuthServerClientPropertiesSet.xml";
16         System.setProperty("celtix.config.file", configFile);
17         url = urlParam;
18     }
19     
20     protected void run() {
21         Object JavaDoc implementor = new GreeterImpl();
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             WantAndNeedClientAuthServerClientPropertiesSet requireClientAuth =
31                 new WantAndNeedClientAuthServerClientPropertiesSet(
32                               "https://localhost:9014/SoapContext/SoapPort");
33
34             ServerThread st1 = new ServerThread(requireClientAuth);
35             st1.start();
36             
37         } catch (Exception JavaDoc ex) {
38             ex.printStackTrace();
39             System.exit(-1);
40         } finally {
41             System.out.println("done!");
42         }
43     }
44 }
45
46
Popular Tags