Now I am able to successfully create a client and subscribe to all documents.
The following code is doing that.
String broker_host = "localhost:6849";
String broker_name = null;
String client_group = "eventLog";
BrokerClient c;
try {
c = new BrokerClient(broker_host, broker_name, null,
client_group, "Publish Sample #1",null);
} catch (BrokerException ex) {
com.wm.util.JournalLogger.log(3,90,3,"LOG111"+ex );
return;
}
/* Create a deadletter subscription for all event types*/
try {
c.newSubscription("*","{hint:DeadLetterOnly}");
//System.out.println(c);
} catch (BrokerException e) {
com.wm.util.JournalLogger.log(3,90,3,"Catch block"+e );
// TODO Auto-generated catch block
e.printStackTrace();
}
I can see the documents entering the above mentioned client and the client group in MWS.
Now, my next question is how do I retrieved the published documents back ?
Any leads are appreciated!
#Integration-Server-and-ESB#webMethods-General#webMethods