Thanks Daniel,

yes, PhaseInterceptorChain.getCurrentMessage().getContextualProperty() also
worked.

On Wed, Jul 13, 2011 at 5:00 AM, Daniel Kulp <[email protected]> wrote:

> On Tuesday, July 12, 2011 11:42:02 AM Sergey Beryozkin wrote:
> > Hi,
> >
> > On Tue, Jul 12, 2011 at 11:31 AM, Nguyen Minh Tuan
> >
> > <[email protected]> wrote:
> > > Hi all,
> > >
> > > In my service implementation, I want to refer to some properties set in
> > > my service context. Based on these properties, the implementation logic
> > > changes. And such properties are set before I deploy the service, i.e.
> > > before invoking Endpoint.publish() to create an implementor. By this
> > > way, I can change the service's behavior via different values set to
> > > the properties.
> > >
> > > I read about WebServiceContext but it seems not what I am looking for.
> > > Since all values in WebServiceContext are only retrievable and usable
> > > in out interceptors. What I needs is to use those values in my service
> > > implementation.
> > >
> > > Could anyone explain to me what I should do in this case?
> >
> > I think WebServiceContext.get() can be used to get to propreties which
> > have been set before the endpoint publication,
>
> Actually, I don't think it does.  I think the context just provides access
> to
> the properties explicitly set during the processing of the message.  It
> doesn't         query the contextual properties.
>
> > CXF specific
> > PhaseInterceptorChain.getCurrentMessage().getContextualProperty() will
> also
> > work
>
> That would definitely work.
>
> Dan
>
> >
> > Cheers. Sergey
> >
> > > --
> > > Best regards,
> > > Tuan.
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> Talend - http://www.talend.com
>



-- 
Best regards,
Tuan.

Reply via email to