Ticket #1244 (closed defect: invalid)
Multiple TransactionListeners per application
| Reported by: | Artur Signell | Owned by: | Jani Laakso |
|---|---|---|---|
| Priority: | undefined | Milestone: | User Interface Library 5.2.0 RC |
| Component: | Server-side framework | Version: | 4.1.0-rc |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
There is no method for finding existing TransactionListeners? from an ApplicationContext? (ie. getTransactionListeners()). If each Application instance registers an own listener all listeners will be called when a single HTTP request is made.
For me it is unclear why TransactionListeners? are Context dependent and not Application dependent. By having eg a map that maps Applications <-> TransactionListeners? a listener would only be called for the application it has been registered to. This would make much more sense to me as everything else is related to an Application.
Why would I ever want to know that the user has refreshed another Application on the same server? Using this for inter Application communication sounds dangerous. Could even be a security risk if server is configured to use same session for all applications (current default behaviour?) and different persons are managing different applications on the server.
