You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Ann Robinson <ro...@us.ibm.com> on 2006/07/24 16:07:06 UTC

[AXIS2] Saving the message context


Hi,
I am investigating how to save and restore the message context in AXIS2.
This is functionality that would be used, for example, by
WS-ReliableMessaging to recover from a server/engine restart.  This would
also involve having a plugpoint for handlers to be able to save and restore
their message context-related data (for example, the security handler might
need to save a certificate or to re-establish a credential/token).

I have noticed that many of the classes involved with the MessageContext
reference java.io.Serializable although few actually implement it.  Has
there been any thoughts or work regarding this?
Thanks,
Ann

WebSphere Development, Web Services Engine

IBM
11501 Burnet Rd   IZip 9035G021
Austin, TX   78758
(512)838-9438                TL 678-9438

Re: [AXIS2] Saving the message context

Posted by Eran Chinthaka <ch...@opensource.lk>.
I can remember Chamikara from WS-RM team did some thing like this. You
can either wait for him to see this or ask in Sandesha-dev list.

-- Chinthaka

Ann Robinson wrote:
> Hi,
> I am investigating how to save and restore the message context in AXIS2.
> This is functionality that would be used, for example, by
> WS-ReliableMessaging to recover from a server/engine restart. This would
> also involve having a plugpoint for handlers to be able to save and
> restore their message context-related data (for example, the security
> handler might need to save a certificate or to re-establish a
> credential/token).
> 
> I have noticed that many of the classes involved with the MessageContext
> reference java.io.Serializable although few actually implement it. Has
> there been any thoughts or work regarding this?
> Thanks,
> Ann
> 
> WebSphere Development, Web Services Engine
> 
> IBM
> 11501 Burnet Rd IZip 9035G021
> Austin, TX 78758
> (512)838-9438 TL 678-9438
> 



Re: [AXIS2] Saving the message context

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2006-07-24 at 09:07 -0500, Ann Robinson wrote:
> Hi,
> I am investigating how to save and restore the message context in
> AXIS2. This is functionality that would be used, for example, by
> WS-ReliableMessaging to recover from a server/engine restart. This
> would also involve having a plugpoint for handlers to be able to save
> and restore their message context-related data (for example, the
> security handler might need to save a certificate or to re-establish a
> credential/token).

We avoid this in Sandesha by storing the message instead of the message
context. Please ask on sandesha-dev and I'm sure someone will explain
how its done.

> I have noticed that many of the classes involved with the
> MessageContext reference java.io.Serializable although few actually
> implement it. Has there been any thoughts or work regarding this?

Yes, don't do it :). We should remove the Serializable markers- those
were left over from an attempt a while back. Saving the entire context
hierarchy and bringing it back via serialization just doesn't work.

Sanjiva.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org