Thanks, Robert. I believe you are referring below to the Handler.invoke(MessageContext) method, which I *presumed* would only run when the service itself is called. If that's not true, please let me know.
If that is true, then I have a bootstrap issue because no client will be able to find the web service until I derive the service endpoint and register it with an external registration provider. Which is why I am trying to figure out how to get the URL when the org.apache.axis2.modules.Module.engagNotify(AxisDescription) runs for each service during Axis2 startup. I'm probably missing something as usual ;-) -----Original Message----- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 3:32 PM To: [email protected] Subject: Re: [Axis2] Determing Service Endpoint from a Module Not sure I understand the question - but if I do it's just: invoke(MessageContext messageContext) { EndpointReference ref = null; if (messageContext.getFLOW() == MessageContext.IN_FLOW) { ref = messageContext.getTo(); } else if (messageContext.getFLOW() == MessageContext.OUT_FLOW) { ref = messageContext.getFrom(); } } HTH, Robert http://www.braziloutsource.com/ On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I need to register a suite of Axis2 web services each time they are deployed > > (i.e., each time the Axis2 web app starts up) with an external registration > service. It appears that the Module interface engageNotify() provides the > ability to take this action at the appropriate time, but I haven't found the > > hook yet that will allow me to determine the URL of the current service at > runtime. I've looked a bit at the definition argument of the engageNotify() > > function, but that appears to provide the stale service endpoint data from > the > services.xml. > > Assistance greatly appreciated. > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
