axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Illsley" <davidills...@gmail.com>
Subject Re: Getting service EPR programmatically
Date Wed, 02 Apr 2008 08:19:51 GMT
Hubert,
I don't believe the Axis2 apis will do this for you, however the
JAX-WS 2.1 APIs will. They will be available in Axis2 1.4 which is due
real soon now.
David

On Tue, Apr 1, 2008 at 5:50 AM, Deepal jayasinghe <deepalk@gmail.com> wrote:
> Hubert H Leung wrote:
>
> > I am looking for a way to get the EPR of the service programmatically.  In
> > my service class, I added the init method:
> >  public void init(ServiceContext serviceContext)
> >
> > I called serviceContext.getMyEPR() in this method, and the value is null.
> > (Note that I set the scope of my service to "application".)
> >
> > However, serviceContext.getMyEPR() returns the right value if I call it in
> > the service call in an operation method.
> >
> > When is the EPR set?
> >
>  When a message receive , i am not quit sure whether we set that at the
> server side.
>  Any way if you are running inside an application severe , you can get the
> EPR as below;
>  configurationContext.getListenerManager().getEPR(service name)
>
>  Thank you!
>  Deepal
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>



-- 
David Illsley - IBM Web Services Development

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message