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