I've post this doubt to Jgroups list and they told that it is possible.
That's the idea:

byte[] buf=marshal(envelope); // marshal() needs to generate a byte[] buffer
from the envelope
Message msg=new Message(null, null, buf);
disp.cast(null, msg, ...);

On the receiver side:
Object handle(Message req) {
 byte[] buf=msg.getBuffer();
 envelope=unmarshal(buf);

I know I can build a SOAPEnvelope with Axis and I'm marshaling the SOAP into
a byte[] this way:

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    SOAPEnvelope envelope = ....
    envelope.serialize(baos);
 My doubt is that the "receiver side" would be Axis2. In this case if I
engage a module to unmarshal the message, would it work even if the message
received ins't a SOAPEnvelope? Because that's the situation.


Best Regards,

Igor Nogueira

Reply via email to