PDA

View Full Version : subscribe - publish -- client-server


Falko.Wiese
10-11-2007, 04:09 PM
Moin, moin -
it's possible to use the IEventRegistry to publish messages from server to interested clients?

Thanks,
Falko.

Erich Eichinger
10-18-2007, 09:51 PM
Hi,

IEventRegistry is used for declaratively managing .NET event/EventHandler subscriptions. If you are looking for inter-server messaging, please check out the NMS or TIBCO integrations from the module downloads (http://www.springframework.net/modules.html) section.

Btw: Please avoid using IEventRegistry - it will be replaced after Spring.NET 1.1 with a much improved event mechanism.

cheers,
Erich

Falko.Wiese
10-19-2007, 10:49 AM
Thank you, Erich, I will try it,

Falko.

Mark Pollack
10-19-2007, 04:20 PM
Hi,

For internal pub/sub one alternative is to use IApplicationEventListener and ApplicationEventPublisher and use a subclass of ApplicationEventArgs unique to your use-case. This hasn't much usage, AFIAK, and I now realise it isn't in the docs, so I'll add that as a JIRA item. You will have to get a ref to the app context as there isn't an 'IApplicationEventListenerAware' interface atm...

That said, I agree with Erich's advice...


Cheers,
Mark

steinard
10-19-2007, 07:04 PM
Hi!

If you want to use .net remoting callbacks, then Erich made a demo here:
http://forum.springframework.net/showpost.php?p=8904&postcount=18


Cheers,
Steinar.