Re: [javagroups-users] Deliver to one only
Brought to you by:
belaban
From: Bela B. <be...@ya...> - 2004-04-09 01:59:23
|
I'm not sure what you want to do, but why do you need the DT ? Looks like you're maintaining group information in it, but this info is already maintained by the channel itself. Maybe I'm misreading this ? Andy Hutchinson wrote: > I'm using JGroups to implement, amongst other things, a failover > mechanism for the transmission of a message onto an industrial > telemetry system. > > Basically there are a number of processing nodes which want to send a > message. This can be done by any number of other nodes but it must be > guaranteed to be sent, but only once. > > Each transmission node adds a tag to a DistributedTree which is then > used to create the distribution list for a MessageDispatcher and a > castMessage call where GroupRequest is GET_FIRST. This effectively > gives me the quickest node to respond and I then send the message > directly to this node. If it subsequently fails I go round the loop > again until it succeeds. > > I am aware that a JMS layer is being added to JGroups and JMS has the > necessary api I'm looking for. My implementation works but it seems > very messy whereas the JMS implementation does exactly what is needed. > Have I missed something or should I wait for the JMS implementation > and recode to that or have I done the best possible with the current > JGroups api? -- Bela Ban http://www.jgroups.org Cell: (408) 316-4459 |