users@jax-ws.java.net

Re: JAX-WS and cache

From: Dima Gutzeit <dima_at_mailvision.com>
Date: Wed, 13 Dec 2006 21:05:36 +0200

Just to illustrate my question, attached an image :-)

Dima Gutzeit wrote:
> I've studying the handler framework and I have some questions.
> Can anyone give me a directions of how should I implement a header
> that will stop the normal message processing (ie sending the SOAP
> message to the server side) and return some cached answer (assuming I
> have some caching mechanism.)
>
> 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 ?
> Thanks in advance.
>
> Regards,
> Dima Gutzeit.
>
>
> Chapman, Daniel wrote:
>> Look into JBOSS Cache - it's very fast and configurable. And if you
>> have a cluster or something it has the ability to share the cache across
>> machines through ldap.
>> -----Original Message-----
>> From: Dima Gutzeit [mailto:dima_at_mailvision.com] Sent: Wednesday,
>> December 13, 2006 9:38 AM
>> To: users_at_jax-ws.dev.java.net
>> Subject: Re: JAX-WS and cache
>>
>> I need a cache on the client side, is there handler framework as well ?
>>
>> ----- Original Message -----
>> From: "Sameer Tyagi" <Sameer.Tyagi_at_Sun.COM>
>> To: <users_at_jax-ws.dev.java.net>
>> Sent: Wednesday, December 13, 2006 6:18 PM
>> Subject: Re: JAX-WS and cache
>>
>>
>>
>>> You could write a custom handler that plugged into a cache
>>> framework, even a distributed cache (see
>>> open source projects).
>>>
>>> On the server side if you could use the session object, or have
>>>
>> similar
>>> handlers
>>>
>>> /s
>>>
>>>
>>>
>>> Dima Gutzeit wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> I am implemeting a solution that has a server and client sides
>>>> while they communicate using JAX-WS webservices.
>>>> What I want to do is for client to cache the responses and not go
>>>> to the server for each request, and let the client subscribe for
>>>> the server to get updates.
>>>>
>>>> Has anyone implemented it or thought about it ?
>>>>
>>>> Is there anything like it in the JAX-WS design ?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Dima Gutzeit.
>>>>
>>> ---------------------------------------------------------------------
>>> 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
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>> This communication is the property of Qwest and may contain
>> confidential or
>> privileged information. Unauthorized use of this communication is
>> strictly prohibited and may be unlawful. If you have received this
>> communication in error, please immediately notify the sender by reply
>> e-mail and destroy all copies of the communication and any attachments.
>>
>