Can you explain the scenario a little bit better? Seems like this
might be something really cool we could build into Synapse.

Paul

On 5/23/07, Lorenzo <[EMAIL PROTECTED]> wrote:
Hi all,

i'm trying to store messages with synapse, but i have some problems:

1) Save message:
        FileOutputStream fos = new FileOutputStream("MC.msg");
        ObjectOutputStream obj_out = new ObjectOutputStream (fos);
        obj_out.writeObject(mc);
        obj_out.close();
        fos.close();
2) Load message
        FileInputStream file_mc = new
        FileInputStream("MC.msg");
        ObjectInputStream is_mc = new ObjectInputStream(file_mc);
        newmc = (MessageContext) is_mc.readObject();
3) Activate it
        mc.activate(confctx);

Now when i try to mediate it i get:
 Synapse received a new message for message mediation...
 Received To: /SincronoAttachment/SincronoAttachment
 SOAPAction: null
 WSA-Action: null
 Attachment : 0.urn:uuid:[EMAIL PROTECTED]

And i loose attachments (SOAP envelope is saved and correctly
restored)..
Moreover when it receive the response i get this error:
 ERROR HttpCoreNIOSender - No valid destination EPR or OutputStream to
send message
 ERROR Axis2Sender - Unexpected error during Sending message back
org.apache.axis2.AxisFault: No valid destination EPR or OutputStream to
send message


What i have to do to complete the message save/restore?

Thx!





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to