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 Igor Nogueira <ig...@gmail.com> on 2008/10/01 02:20:25 UTC

Jgroups

Hello guys!
I'd like to know if there's a way of invoking web services form Jgroups? I'd
like to have some services in group and send/receive messages to them
through Jgroups. As I'm working with replication, some of Jgroups features
would be very useful to me.

Thanks again,

Igor Nogueira Santos.

Re: Jgroups

Posted by Igor Nogueira <ig...@gmail.com>.
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

Re: Jgroups

Posted by Igor Nogueira <ig...@gmail.com>.
I mean is there a way to send SOAP envelopes with Jgroups?
Has anybody tryed it yet?

Best Regards,

Igor Nogueira Santos

2008/9/30 Igor Nogueira <ig...@gmail.com>

> Hello guys!
> I'd like to know if there's a way of invoking web services form Jgroups?
> I'd like to have some services in group and send/receive messages to them
> through Jgroups. As I'm working with replication, some of Jgroups features
> would be very useful to me.
>
> Thanks again,
>
> Igor Nogueira Santos.
>