cancel
Showing results for 
Search instead for 
Did you mean: 

Project architecture and feasibility

jdupont1
Champ in-the-making
Champ in-the-making
Hi,

I have some questions about my following application architecture using Activiti.

[img]http://img4.hostingpics.net/pics/348863questionActiviti.png[/img]

I have 3 Maven modules. The first is the GUI, the second is the orchestration and the last for Services, DAOs and the data model. I have 2 datasources, one for the needs of Activti and the other for the data model. I have access the data model data source through JPA/Hibernate.

Questions:
- can i handle the data model in the orchestration (in service task by example)?
- if yes, must i inevitably use JTA?
- i use Spring in my application, can i easily integrate JTA to Activiti (i know the activiti-spring module)?
8 REPLIES 8

duderk
Champ in-the-making
Champ in-the-making
Hi,

I'm new to Activiti and was wondering how did you generate the multi module maven project? did you used some ArchType that enables the architecture you laid out?

any tips will be helpful for a newbie like me

Thanks
RK

shashank_jain
Champ in-the-making
Champ in-the-making
Hi,

I have some questions about my following application architecture using Activiti.

[img]http://img4.hostingpics.net/pics/348863questionActiviti.png[/img]

I have 3 Maven modules. The first is the GUI, the second is the orchestration and the last for Services, DAOs and the data model. I have 2 datasources, one for the needs of Activti and the other for the data model. I have access the data model data source through JPA/Hibernate.

Questions:
- can i handle the data model in the orchestration (in service task by example)?
- if yes, must i inevitably use JTA?
- i use Spring in my application, can i easily integrate JTA to Activiti (i know the activiti-spring module)?

I am also having the same concerns. Can I avoid using JTA and wrap the call to my domain model over the same connection.Will be curious to know as to how you approached it?

tbee
Champ in-the-making
Champ in-the-making
Interesting, I'm at the same junction. Right now BM and Activiti SQL are done through two different connections to two different databases, but naturally I too want them bundled in a single transaction. What did you end up with? I'm at the point of rolling in a JTA solution.

jbarrez
Star Contributor
Star Contributor
If you have multiple DB's, yes you'd need JTA commit transactions if you want 2-phase commits.

tbee
Champ in-the-making
Champ in-the-making
Got it working. I found not much documentation on this, so I'm intending a short blog post with the code I used.

jbarrez
Star Contributor
Star Contributor
That would be awesome. Looking forward to it!

tbee
Champ in-the-making
Champ in-the-making
I'm afraid I'm running into all kinds of connection problems. Activiti all of a sudden is using different connections and thus causing locking conflicts in itself.

http://forums.activiti.org/en/viewtopic.php?f=6&t=4625&p=17920#p17920