Hi Ann, > <amr> > The save/restore of a MessageContext object hierarchy attempts to > reduce the duplication of parent-child objects in that MessageContext > object graph. The re-established MessageContext object graph keeps > the *Context objects to a single set and gets the Axis* objects > through the ConfigurationContext object associated with the AxisEngine > where the MessageContext was restored. So, the *Context objects are > unique across restored MessageContexts but the Axis* objects are > easily shared/re-used across restored MessageContexts. A future > refinement for the save/restore of the MessageContext is to find a way > to share *Context objects across restored MessageContexts. This is > actually a fairly small set of objects and involves the > OperationContext, ServiceContext, and ServiceGroupContext objects. > </amr>
Hmm. I don't think your approach will work if there's any serializable state the user has put into say ServiceContext and if that state gets modified by handlers after message reincarnation. There will be two different service contexts around and the "shared" value will no longer be shared. > 5. How will this map to a environment where somebody wants to save the > MC in a database. For example Sandesha2 has a StorageManager inferace > which could be implemented by different storage mechanisms. How will > you support such a scenario with this. > > <amr> > The MessageContext is saved to an output stream, and the output stream > can be directed to a variety of mechanisms. A storage mechanism that > implements the Sandesha2 StorageManager interface could set up an > output stream that is appropriate for the target database, for > example, a byte array or a file. > </amr> Isn't that rather weird?? Writing an object output stream to go to a database? Maybe its just me (and I don't know anything about databases so could easily be wrong). Sanjiva. -- Sanjiva Weerawarana, Ph.D. Founder & Director; Lanka Software Foundation; http://www.opensource.lk/ Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/ Director; Open Source Initiative; http://www.opensource.org/ Member; Apache Software Foundation; http://www.apache.org/ Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
