|
Re: Asynchonrous and synchronous messages on same channel: msg#00007java.javagroups.general
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> |
|---|---|---|
| Previous by Date: | Re: 2.3 Vs 2.3 SP1, Bela Ban |
|---|---|
| Next by Date: | Re: Asynchonrous and synchronous messages on same channel, Tim Fox |
| Previous by Thread: | Re: Asynchonrous and synchronous messages on same channel, Bela Ban |
| Next by Thread: | Re: Asynchonrous and synchronous messages on same channel, Tim Fox |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |