6 // Michael Kircher (mk1@cs.wustl.edu)
9 // Entry point for the demo.
11 // ============================================================================
16 public class DOVEBrowser
{
20 public DOVEBrowser () {
24 public void init (String nameServiceIOR
, String nameServicePort
,
25 String
[] args
, boolean use_queueing
) {
27 demoCore_
= new DemoCore (nameServiceIOR
,
36 public static void main (String
[] args
) {
37 String nameServiceIOR
= null;
38 String nameServicePort
= null;
39 boolean use_queueing
= false;
42 // Loop through command line arguments, acting on relevant options
43 while (args
.length
> arg_index
)
45 System
.out
.println ("args.length [" + args
.length
+ "] arg_index [" +
47 // Set the name service IOR
48 if (args
[arg_index
].equals ("-queue"))
53 else if ((args
[arg_index
].equals ("-nameserviceior")) &&
54 (args
.length
> arg_index
+ 1))
56 System
.out
.println ("switch [" + args
[arg_index
] + "]");
57 System
.out
.println ("value [" + args
[arg_index
+ 1] + "]");
58 nameServiceIOR
= args
[arg_index
+ 1];
59 System
.out
.println ("nameServiceIOR [" + nameServiceIOR
+ "]");
62 // Set the name service port
63 else if ((args
[arg_index
].equals ("-nameserviceport")) &&
64 (args
.length
> arg_index
+ 1))
66 System
.out
.println ("switch [" + args
[arg_index
] + "]");
67 System
.out
.println ("value [" + args
[arg_index
+ 1] + "]");
68 nameServicePort
= args
[arg_index
+ 1];
69 System
.out
.println ("nameServicePort [" + nameServicePort
+ "]");
72 // Skip over anything else
75 System
.out
.println ("Skipping [" + args
[arg_index
] + "]");
80 DOVEBrowser doveBrowser
= new DOVEBrowser();
81 doveBrowser
.init (nameServiceIOR
, nameServicePort
, args
, use_queueing
);