Chris Melas [
https://community.jboss.org/people/melc] created the discussion
"Re: Using jbpm-human-task-war.war instead of DemoTaskService.class"
To view the discussion, visit:
https://community.jboss.org/message/649525#649525
--------------------------------------------------------------
Hello,
Indeed starting a thread within a servlet is not a very good idea in general, however it
will not necessarily hurt i.e. in cases that you don't care if the thread are managed
by the app server, or you don't want to use resources from the app server context etc.
At first glance i feel the same with human task war, the thread that starts when the
server starts will exist as long as the server runs, even if you could tried to start
another thread while running you wouldn't be able because the human task port would be
occupied. Of course one could always elaborate a bit on the code and make it managed
possibly by using servletcontextlistener, ejb, quartz, spring etc
Regarding the jbpm-human-task-war you may need to add a little code regarding the task
callback functionality, to se how just check the code of DemoTaskService and put it in
HumanTaskServiceServlet you'll also need the jbpm.usergroup.callback.properties.
I managed to make it run , since i was getting some javax.naming.NameNotFoundException:
TransactionManager -- service etc in relation to the "Could not connect to task
client", by changing the following line within persistence.xml
from
<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup" />
to
<property name="hibernate.transaction.manager_lookup_class"
value="org.jbpm.integration.console.JBPMTransactionManager" />
you will also need to put in WEB-INF/lib the jbpm-tm.jar found in the folder of your
jbpm5.2 jbpm-installer.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/649525#649525]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]