• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!