You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by robert lazarski <ro...@gmail.com> on 2006/06/27 21:31:53 UTC
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, Andersen_John@emc.com <An...@emc.com> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: [Axis2] Determing Service Endpoint from a Module
Posted by An...@emc.com.
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:robertlazarski@gmail.com]
Sent: Tuesday, June 27, 2006 3:32 PM
To: axis-user@ws.apache.org
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, Andersen_John@emc.com <An...@emc.com> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org