Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Message Handlers and Axis

 
Sachet Varma
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could someone please guide me in creting a Handler class. I have created a Handler class that implements the Handler interface and have defined the handleRequest(MessageContext ...) method

My prob is , with Axis , am not sure which are the deployment files that need to be tweaked since am not sure which one corresponds to the webservice.xml and so on.

Could someone please guide me as to which deployment files need to be modified to add a Handler

Thanks!
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If the web service stack you are using adhere to the JAX-WS specification, then have two alternatives:
1) Use the @HandlerChain annotation on either the service implementation class, for handlers on the server side, or on a web service reference, for handlers on the client side.
The @HandlerChain annotation refers to an XML file in which the handlers are defined. This is an example of such a file:


2) Use the webservices.xml deployment descriptor:

Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic