Sam Mano [https://community.jboss.org/people/artist123] created the discussion

"Transaction in JBPM"

To view the discussion, visit: https://community.jboss.org/message/780169#780169

--------------------------------------------------------------
h3. My scenario 1:
I have one persistence.xml with one persistence unit and describing both 
process table and task table persistence info in mysql db running locally.
Non XA datasource environment.

h5. Test 1:
Create some process flow using one human task node (using local human task) and 
run all in one flow.

h5. Result:
working fine , creating tables and updating data and close the process and 
session properly- success

h5. Test 2:
In the same above scenario,want to create human task service using mina as 
server to connect the taskservice and start the process separately to connect 
the human task using mina and complete the human task.

h5. Result:
It fails and throws transaction exception due to btm.

h6. My Investigation / Observation:
Since I am using one persistence unit to create the entitymanager, I am passing 
this entity manager to task service. what happen is first i am starting the 
human task service using mina ...it is working fine and starting the mina 
server. that time btm transaction journal log files open and locked. After 
starting the mina task server successfully I tried to start the process to 
complete the human task. what happen now is againg I am creating a entitymanger 
using the same persistence unit to create a knowledgesession, since the btm is 
already active and locked by the humantaskservice, this throws the 
"bitronix.tm.utils.InitializationException: cannot open disk journal".

h6. My question:
1- What I am tring to achive is correct or wrong?
2 - Do I need to treat the process and human task service separate components? 
if yes why? (I gone throug the documents still have doubts)?
3 - If I use JTA for human task and process persistence, how to handle? Do I 
need two persistence units? is it possible to have one persistence unit to 
handle this (do not want to use local human task want to use mina or hornetq)?

Note:
I created two separate persistence units one for task and one for process 
process unit using JTA and BTM, while task persistence unit not in this test 
working fine.


please join me to discuss this topics,


thanks in advance,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780169#780169]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to