Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Endpoint and Clients communicate with Handlers ?

 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one can give some inputs ?

How a JAX-WS Endpoint (Servlet based or EJB) communicate with Handler and how does a Client do it ?
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you mean by 'communicate with handler' but as you may know already, handlers handleMessage method takes a subclass of the MessageContext object as argument. This MessageContect object can hold properties that are visible to the web service consumer and provider. If these properties are set with scope MessageContext.Scope.Application they will be available in the response context as well. So, you can use properties in MessageContext object to share information between handler and client/provider.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic