logo       

Re: Asynchonrous and synchronous messages on same channel: msg#00007

java.javagroups.general

Subject: Re: Asynchonrous and synchronous messages on same channel

Bela Ban wrote:
>
> Tim Fox wrote:
>
>>Is it possible to install a MessageDispatcher and a Receiver on the same
>>channel.
>
>
> No, unless the channel is a MuxChannel, which you get as result of
> JChannelFactory.createMuxChannel. Then the dispatcher registers under a
> certain ID, and the Receiver under another. Check out
> http://www.jgroups.org/javagroupsnew/docs/manual/html/user-advanced.html#d0e2313
>
> for details

I thought this was possible by specifying a MessageListener and a
MembershipListener to the MessageDispatcher constructor. Then, messages
that don't begin with the MessageDispatcher specific header (messages
sent by Channel.send instead of using MessageDispatcher.castMessage or
sendMessage) are handled by the specified MessageListener and
MembershipListener

A receiver is both a MessageListener and a MembershipListener, so you
get the same result.

perhaps it works only with the MessageDispatcher taking a Channel as
parameter ?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise