-
1. Re: Broadcasting a message
tfennelly Jan 11, 2008 3:52 AM (in response to tobysaville)Hi Toby. You pretty have it as it is there.
On the delivery side, you could improve it a little bit (perhaps) by creating a "dummy" service that listens on that JMS topic only. You could call this your "Broadcast Service". The "real" services would also listen on the same JMS topic. You can then use the ServiceInvoker or the Routing actions and route the message to the "Broadcast Service", which will result in the message being broadcast on the underlying JMS topic and so being picked up by the other Services listening on that topic. Not idea, but better than using JMS directly.
As far as having a "Broadcast Listener" type thing... it doesn't exist yet. Sorry. -
2. Re: Broadcasting a message
noel.rocher Jan 11, 2008 5:51 AM (in response to tobysaville)The Event Manager could be what you're looking for : http://wiki.jboss.org/wiki/Wiki.jsp?page=EventManagerAction
-
3. Re: Broadcasting a message
tobysaville Jan 11, 2008 5:59 AM (in response to tobysaville)Hi Tom,
thanks for the reply. i would be happy to develop something like this. is it possible with the framework? what would be involved?
cheers,
toby -
4. Re: Broadcasting a message
tobysaville Jan 11, 2008 6:03 AM (in response to tobysaville)Thanks Noel, ill take a look.
- tobes -
5. Re: Broadcasting a message
marklittle Jan 11, 2008 7:32 AM (in response to tobysaville)Yes, the event manager is meant to do just that in a protocol agnostic manner. Obviously if you're only interested in JMS then your favourite JMS implementation already supports something native ;-)
-
6. Re: Broadcasting a message
tobysaville Jan 11, 2008 10:00 AM (in response to tobysaville)Hello,
I had a look at the EventManager action, it looks like what i want, thanks!
One question i have is how to automatically send the subscribe/unsubscribe messages. I guess you would want to send these automatically at deployment/undeployment. How is this possible?
cheers,
toby -
7. Re: Broadcasting a message
tobysaville Jan 11, 2008 10:27 AM (in response to tobysaville)just had a thought, i guess this is possible from within the initialise and destroy methods of the action. i will try this.
-
8. Re: Broadcasting a message
marklittle Jan 11, 2008 11:11 AM (in response to tobysaville)Yes, that should work. I'd add that to a specific Action personally, rather than all Actions, so you have more control over which services register with the event manager. Just a thought.