KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ebay > server > Main


1
2 package ebay.server;
3 import javax.xml.ws.Endpoint;
4
5 public class Main {
6     
7     /** Creates a new instance of Main */
8     public Main() {
9     }
10     
11     /**
12      * @param args the command line arguments
13      */

14     public static void main(String JavaDoc[] args) {
15         // TODO code application logic here
16
System.out.println("Starting endpoint with address http://localhost:7070/Ebay");
17         Endpoint.publish("http://localhost:7070/Ebay", new Ebay());
18         Endpoint.publish("http://localhost:7070/ImageProvider", new ImageProvider());
19     }
20 }
21
Popular Tags