Basic HTML version of Foils prepared March 26 1999

Foil 107 Simple Client

From Use of WebFlow to build Problem Solving Environments CEWES Training on WebFlow at Vicksburg -- March 9 1999. by Tom Haupt


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");

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Mar 27 1999