View Javadoc

1   /*
2    * Created on 15.6.2005
3    *
4    * TODO To change the template for this generated file go to
5    * Window - Preferences - Java - Code Style - Code Templates
6    */
7   package net.sf.exorcist.dbe.client;
8   
9   import java.net.URL;
10  
11  import net.sf.exorcist.dbe.MigratorService;
12  
13  import org.sun.dbe.ClientHelper;
14  
15  
16  /***
17   * @author Jukka Zitting
18   *
19   * TODO To change the template for this generated type comment go to
20   * Window - Preferences - Java - Code Style - Code Templates
21   */
22  public class ExportClient {
23  
24  	public static void main(String[] args) {
25  		try {
26  			ClientHelper ch = new ClientHelper(new URL(args[0]));
27  			MigratorService ms = (MigratorService) ch.getProxy(
28  					MigratorService.class,
29  					new String[] { "MigratorService", "Yukatan" });
30  			ms.scheduleMigration(
31  					new String[] { "ExportService" }, "C:/content.zip",
32  					new String[] { "ImportService" }, "Got this XML:");
33  		} catch (Exception e) {
34  			e.printStackTrace();
35  		}
36  	}
37  }