You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Lorenzo <ce...@gmail.com> on 2007/09/12 15:46:04 UTC

Restore MessageContext

Hi all,

i'm trying to restore a previously saved MessageContext.

i tried this:


ObjectInputStream inObjStream = new ObjectInputStream(is);
msg = (MessageContext) inObjStream.readObject();
msg.activate(ConfigurationContextFactory.createDefaultConfigurationContext());
log.info("cType: " + contentType + " == " + ((Map)
msg.getProperty(MessageContext.TRANSPORT_HEADERS)).get(HTTPConstants.HEADER_CONTENT_TYPE));

but it gives this
[ServiceContext]
ServiceContext@urn:uuid:BF58F7C915DCB436C91189506638075:getAxisService(): ****WARNING**** ServiceContext.activate(configurationContext) needs to be invoked.

I activate messageContext with
ConfigurationContextFactory.createDefaultConfigurationContext because i
don't have any AxisContext avaiable. I tried also with 

String resource = "/var/axis2/WEB-INF/";
ConfigurationContext.createConfigurationContextFromFileSystem(resource,resource+"config/axis2.xml");
but nothing change..

What i have to do to complete MessageContext build?
			



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