|
Re: Asynchonrous and synchronous messages on same channel: msg#00005java.javagroups.general
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 would like to use the same channel for both synchronous and > asynchronous messages. Note that you can use the Dispatcher to do both anyway: castMessage() has a mode parameter, which can get GroupRequest.GET_ALL (block for all replies, minus the suspected ones) or GroupRequest.GET_NONE (wait for no replies), which is essentially asynchronous. -- Bela Ban Lead JGroups / Manager JBoss Clustering Group JBoss - a division of Red Hat ------------------------------------------------------------------------- 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: | 2.3 Vs 2.3 SP1, Alfredo Ramos |
|---|---|
| Next by Date: | Re: 2.3 Vs 2.3 SP1, Bela Ban |
| Previous by Thread: | Asynchonrous and synchronous messages on same channel, Tim Fox |
| Next by Thread: | Re: Asynchonrous and synchronous messages on same channel, Matthieu Imbert |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |