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

Who invokes the handlers?

 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Who is responsible for invoking the request/response handlers for:

1) standalone webservice client request/response

2) EJB service endpoint request/response

3) JAX-RPC service endpoint request/response

Thanks in advance.

-Saha
 
Harsha Jay
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saha,

The behavior and functioning of message handlers is same as Servlet filters. No one invokes the filter the container takes of it. we only need to specify this in the service-ref element in the web.xml.

Servlet filter chaining and Message handler chaining is pretty much same.

-Harsha
 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harsha,

Thanks for the input. If handlers are to reside on the server, do the handlers get added to the webservice.xml?

Thanks in advance.

-Saha
 
Harsha Jay
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saha

RMH chapter 14 is all about Handlers.I suggest you to go through it.

Refer page 702 in RMH for use of handlers in webservices.xml

Refer page 685 in RMH for use of handlers in web.xml



Harsha
[ December 12, 2006: Message edited by: Harsha Jay ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic