Hi Sahan,
Sahan Gamage wrote:
Hi Ishan, are you using the same service to publish and subscribe ?
Well, there are 3 parties here. A publisher service, a listener service and a subscribing client.
The subscriber client first calls a "start" operation in the publisher svc to start the publishing thread. Then it subscribes on behalf of the listener service.
The publisher svc, then should send notifications to the listener service.
Can you send the endpoint url you use for the second client creation ?
The epr is that of an operation called "notify", which the listener svc implements.
address: "http://localhost:9090/axis2/services/listner" action: "http://ws.apache.org/axis2/c/savan/samples/listner/notify"
Also I believe you are not writing to "svc" and to the hash map inside the publisher threads. if you do you must synchronize manually. svc object and axis2_util hash map is not thread safe IIRC.
No. I only want to read the hash map in the 2nd thread. Thanks, Ishan. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
