• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Handlers

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In prepping for the certification I have the following question:
in javax.xml.rpc.handler.Handler you have handleRequest(MessageContext context) and handleResponse(MessageContext context)
in javax.xml.ws.handler.Handler<C extends MessageContext> you have handleMessage(C context)

Now it seems to me that you have to use the MessageContext field MESSAGE_OUTBOUND_PROPERTY to make the distinction between in/out bound message direction vs. the "rpc" handler that had the container making that distinction, i.e. the logic was moved from the container to the implementor of the handler.

WHY was this done?

Is there another idea here in that the purpose of the handler should not care about direction? i.e. it should be performing the same behavior irrespective of the direction of the message?
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello reading your question I noticed it's not clear to me wich specification are used for the exam
I was sure the exam was based on http://jax-ws.java.net/nonav/jaxws-api/2.2/ where you have only logicalHanderl and soapHandler
according to your question you are using http://docs.oracle.com/javaee/6/api/javax/xml/rpc/handler/Handler.html that are organized differently
wich API are required for the exam ?
thanks
Davide
 
reply
    Bookmark Topic Watch Topic
  • New Topic