public static void main(String[] args) {
try {
DuccEventHttpDispatcher dispatcher =
new DuccEventHttpDispatcher("http://"+args[0]+":19988/or",1000*4);
SubmitJobDuccEvent duccEvent = new SubmitJobDuccEvent(null);
DuccEvent event = dispatcher.dispatchAndWaitForDuccReply(duccEvent);
if ( event instanceof SubmitJobReplyDuccEvent ) {
System.out.println("Client received SubmitJobReplyDuccEvent");
}
} catch( Exception e) {
e.printStackTrace();