hi all
i use the notificationListner to listen to changes happened in exchange server
in the following code the notify function is fired when there is any changes but
it didn't give me any info about the updated data the parameter pased to it is
always empty
String root = "/exchange";
String resource ="test/";
listener = new
NotificationListener("localhost",1113,exchangePort,80,
Protocol.getProtocol("http"),
new NTCredentials("uname","pass",serverip,""),
root+"/" +
resource,10000,true);
System.out.println(listener.subscribe("Update/newmember","",DepthSupport.DEPTH_1,
1,100,new SimpleSubscriber(),
new NTCredentials("test","TheN1le","172.18.7.1","")));
and here the SimpleSubscriber class
public class mySubscriber implements Subscriber {
public void notify( String uri, Map map) {
System.out.println( uri);
if(map.isEmpty())
System.out.println("empty map");
}
}
}
is anybody know what is wrong ,i need the notify to have info about the modified
data
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]