1 | Public class Client { |
2 | public static void main(String args[]) { |
3 | configReader config; |
4 | ORB orb = ORB.init(args, new java.util.Properties()); |
5 | String masterURL = args[0]; |
6 | String ref=getIORFromURL(masterURL); |
7 | org.omg.CORBA.Object obj=orb.string_to_object(ref); |
8 | WebFlowContext master=WebFlowContextHelper.narrow(obj); |
9 | WebFlowContext slave; |
10 | try { |
11 | org.omg.CORBA.Object p1,p2; |
12 | slave=WebFlowContextHelper.narrow(master.getWFServer("ntserver")); |
13 | --------> make sure that the name match slave.conf |
14 | p1 = slave.addNewModule("runEdys"); p2 = slave.addNewModule("runCasc2d"); |