-
1. Re: ejb timer session
camunda Mar 31, 2008 6:14 AM (in response to aguizar)Hi Alex!
I would at least use the Commands in that Timer implementation. The CommandExecutor is not really necessary, since the Timer is already EJB aware and can create and manage the environment (the JbpmContext).
But the code should go in the Commands in my opinion. There it will be reusable and it is in some central place. And the most important features are already present as commands...
Cheers
Bernd -
2. Re: ejb timer session
tom.baeyens Mar 31, 2008 6:30 AM (in response to aguizar)yes, the command should definitely be executed in the command facility.
the advantage is configuration and manageability.
configuration: you might add an interceptor with configuration when the command service is used
manageability: it's much easier to explain and keep track of what is executed where. so if someone adds a configuration to the command service it might be expected that this configuration will apply to all jbpm commands... -