users@jax-ws.java.net

Re: JAX-WS and cache

From: Dima Gutzeit <dima_at_mailvision.com>
Date: Wed, 13 Dec 2006 22:41:06 +0200

Booby,

Thank you for you reply. One more question :-)

Assuming I will implement the cashing on the handler level, can I know
the contents of the request once I get the response ?

I mean once I have the response processed in the handler, is there any
way to access the request, or should I "store" it once the request is
being made ?

Thanks in advance.
Regards,
Dima Gutzeit.

Bobby Bissett - Javasoft wrote:
>>
>> In the handler (logical one) I can see only
>> public boolean handleMessage(LogicalMessageContext messageContext)
>>
>> How can I stop the exection at this point and to "reply" to the
>> "caller" of certain ws method ?
>
> You can replace the contents of the current message with a valid
> response message and return false from the handle() method. This will
> terminate handler processing and reverse the direction of the message
> back to the client. (...unless it's a one-way message, in which case
> you wouldn't be asking this question since there would be no return
> value to cache.)
>
> It may be easier, if possible, to cache the information in your own
> code and only make the web service call occasionally, rather than
> intercepting the web service call. Just a suggestion -- I know there
> are cases where adding the handler is actually simpler.
>
> Cheers,
> Bobby
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>