Send signal to every active session object

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
cesarrafael
Posts: 32
Joined: Tue Dec 01, 2015 3:44 am

Send signal to every active session object

Post by cesarrafael »

Hi All,

Does anyone know if it possible to implement a signaling event to an object present in every active session on the web?
Fo r example, a user takes an action that updates a file and we would like that every active list reflecting that file, on every active user, to be refreshed. Is this possible to implement?

Many thanks,
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Send signal to every active session object

Post by Dino »

Hi Rafael

Brendan suggested a way to handle a refresh for several views here:

viewtopic.php?f=3&t=2648&p=7879&hilit=brendan#p7879

Something like that could work for you?

kind regards,
cesarrafael
Posts: 32
Joined: Tue Dec 01, 2015 3:44 am

Re: Send signal to every active session object

Post by cesarrafael »

Thanks Dino, But I don't think it does what I need... What would be nice was a "global" signal, like when an event is triggered every object listening to that event would execute some code independently of the session or user running it... It's probably hard to implement in stateless applications...
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Send signal to every active session object

Post by Dino »

You may want to review the VLF-ONE and how it works to define events and how the command handlers/filters can subscribe to events using a "framework manager". That it is basically doing already in LANSA what you want to implement right now:

https://docs.lansa.com/15/en/lansa048/i ... ight=event
Post Reply