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]
[EMAIL PROTECTED]: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?
Thx,
Lorenzo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]