[
http://jira.jboss.com/jira/browse/JBPM-886?page=comments#action_12379554 ]
Tom Baeyens commented on JBPM-886:
----------------------------------
some more explanations:
currently, the EjbSchedulerService will use the ejb timer service of the TimerServiceBean
(SLSB) to create an ejb timer. that way, all ejb timers are created in one single SLSB.
so if later, we need to cancel a timer, we need to scan through all the ejb timers in
order to find the right one. (there is no querying capability in ejb timers)
the solution is can see is that we use one timer entity bean per timer instead of the
single SLSB for all timers.
then we can first query the right timer beans, knowing that each timer bean will have
exectly 1 timer associated with it.
change ejb timers from SLSB to an entity bean approach
------------------------------------------------------
Key: JBPM-886
URL:
http://jira.jboss.com/jira/browse/JBPM-886
Project: JBoss jBPM
Issue Type: Feature Request
Reporter: Tom Baeyens
Assigned To: Tom Baeyens
Priority: Critical
Fix For: jBPM jPDL 3.2.3
the problem is that all the timers are put on a single slsb. so we have to loop through
all the timers to cancel or find one. that is a bottleneck.
we need to change that approach to the use of entity beans. 1 entity bean per job. so
that we can put queries for jobs and that way have a more efficient way of finding and
cancelling ejb timers.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira