Thanks Sergey,

How do you set values to properties in WebServiceContext before deployment?

On Tue, Jul 12, 2011 at 8:42 PM, Sergey Beryozkin <[email protected]>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,
> CXF specific
> PhaseInterceptorChain.getCurrentMessage().getContextualProperty()
> will also work
>
> Cheers. Sergey
>
> > --
> > Best regards,
> > Tuan.
> >
>
>
>
> --
> Sergey Beryozkin
>
> http://sberyozkin.blogspot.com
> Talend - http://www.talend.com
>



-- 
Best regards,
Tuan.

Reply via email to