On these two blog entries, search on "WebServiceContext" and you'll see
how they can be filled used from either JAX-WS handlers or CXF
Interceptors, and accessed within the web service implementation:
http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial
http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors
HTH,
Glen
On 07/12/2011 06:31 AM, Nguyen Minh Tuan 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?
--
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza