Well. in that case why do you want to create a client by following sequence ? (I am depicting important lines from your original code).
data->svc = AXIS2_MSG_CTX_GET_SVC(msg_ctx, env); (Inside the subscriber service) .... svc = mydata->svc; (inside the publisher thread) ... svc_client = axis2_svc_client_create_with_conf_ctx_and_svc(env, path, conf_ctx, svc); (Inside the publisher thread) Depicting from the API in axis2_svc_client.h "* @param svc pointer to service struct representing the service to be consumed." So as I understand, by last line you're trying to create a client to subscriber service inside the publisher thread . Instead I think you might want to create a client to the listener service. -sahan On 10/18/06, Ishan De Silva <[EMAIL PROTECTED]> wrote:
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
