-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add externalid #151
base: master
Are you sure you want to change the base?
Add externalid #151
Conversation
This would of course require an update to the Jakarta Enterprise Beans specification, at least a move to 4.1. A documentation update is needed to differentiate this new method from |
Hi @tkburroughs this is to allow the app using EJB timers to identify it quickly.
Right now the solution is to deserialize one by one all timers to looks for specific data to identify if timer exists or not with this externalId, at the moment timer is created we have access to an external identifier (we can call it correlation key too) to find easily if timer exists or not. Example: An app creates a process called If we add this univoque reference to timer, we can search for this timer quickly if we need to manipulate it |
Applications already have this ability with Timer.getInfo(). When the timer is created, it could pass There is also a Timer.getHandle(), which returns a serializable reference to that timer, which an application could easily store somewhere and have very quick access to that timer in the future. Just adding a new |
@tkburroughs yes, inside info, timer has this external id Our app has a table indexing this id But if that fails for any reason, when there're lot of timers, this operation is really slow.
it does a In app using timers, we have access to this id: We understand the concern, "search by whatever", but external id seems a natural indexed data for a service used by other systems, like EJB timers. Info covers this in a real agnostic way, but with a poor performance access. We are asking users to clean timers, and that might fix the problem, but still seems reasonable timer service to provide a quick search based on the external reference. |
https://issues.redhat.com/browse/EAPSUP-1336
Allow to define an external identificator for created timer