-
1. Re: To use or not to use MinaTaskService
salaboy21 May 14, 2012 9:49 PM (in response to devilkazuya99)Don't forget about HornetQ!
When you use the LocalTaskService you are adding to your application or the process engine thread the responsability of handling tasks as well.
If you choose to use an external server like Mina or HornetQ you are decoupling the responsability and then is easy to share that component with other components in your infrastructure.
So its up to you and the architecture that you choose for your apps. This is flexible enough to give you freedom in that decision. Of course that if you add a remote and external server you will
add the overhead of the transports.
Cheers
-
2. Re: To use or not to use MinaTaskService
gigazhang May 21, 2012 10:12 PM (in response to salaboy21)TaskService service = new TaskService(jbpmTaskEntityManagerFactoryJbpmTask, null);
The constructor of TaskService like: TaskService(EntityManagerFactory emf,SystemEventListener systemEventListener)
how i to set the SystemEventListener?
TaskServiceSession session = new TaskServiceSession(service, jbpmTaskEntityManagerFactoryJbpmTask.createEntityManager());
LocalTaskService taskService = new LocalTaskService(session);
-
3. Re: To use or not to use MinaTaskService
devilkazuya99 May 21, 2012 10:32 PM (in response to gigazhang)The constructor of TaskService like: TaskService(EntityManagerFactory emf,SystemEventListener systemEventListener)
how i to set the SystemEventListener?
taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());