Camunda, Restlet, another datasource, transaction

463 views
Skip to first unread message

sojk...@gmail.com

unread,
Aug 6, 2013, 6:54:12 AM8/6/13
to camunda-...@googlegroups.com
Hello,

I have a question on your opinion about developing this project:

1) Restlet framework - runs in servlet container on JBoss
2) Camunda framework - JBoss distribution
3) Second database for bussines data

When I recieve some request from client via REST I complete some task in Camunda engine (for example) and I change bussines data. (Not only in workflow).

This all section I want to have in transaction. When Camunda crash all will be rollback, if work with bussines data crash, make rollback too.

What is the best practise? Use Spring framework and his Transaction Manager? Because I am not able to inject any object in Restlet resource class.

Thank a lot for your opinion.

Best regards
Jiri Sojka

Daniel Meyer

unread,
Aug 7, 2013, 2:55:46 AM8/7/13
to sojk...@gmail.com, camunda-...@googlegroups.com

Hi Jiri,

 

Is all of this running inside the same application server or is the Restlet based frontend running inside a different JBoss instance? Maybe a high level architecture diagram would help us to discuss this more efficiently.

 

 

If it is all running inside the same JBoss instance then it is simple. (b-left) The process engine as configured in our distribution integrates with JTA transaction manager. Make sure that your secondary persistence uses JTA well.

If you use different datasources for process engine and secondary persistence you need XA for atomicity. (b-right)

 

Cheers

Daniel Meyer

 

 

-----Ursprüngliche Nachricht-----
Von: camunda-...@googlegroups.com [mailto:camunda-...@googlegroups.com] Im Auftrag von sojk...@gmail.com
Gesendet: Dienstag, 6. August 2013 12:54
An: camunda-...@googlegroups.com
Betreff: Camunda, Restlet, another datasource, transaction

--

You received this message because you are subscribed to the Google Groups "camunda BPM users & process application developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.

To post to this group, send email to camunda-...@googlegroups.com.

 

 

image001.png

sojk...@gmail.com

unread,
Aug 9, 2013, 8:33:46 AM8/9/13
to camunda-...@googlegroups.com, sojk...@gmail.com
Hi Daniel,

thank you very much. Everything runs fine. I used JTA Transaction Manager, two XA datasources and it works correct finally!

Reply all
Reply to author
Forward
0 new messages