Project architecture and feasibility

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2011 04:23 AM
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 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)?
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2011 10:02 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2012 03:31 AM
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?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2012 05:40 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2012 04:16 AM
If you have multiple DB's, yes you'd need JTA commit transactions if you want 2-phase commits.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2012 04:31 AM
Got it working. I found not much documentation on this, so I'm intending a short blog post with the code I used.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2012 05:05 AM
That would be awesome. Looking forward to it!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2012 10:15 AM
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
http://forums.activiti.org/en/viewtopic.php?f=6&t=4625&p=17920#p17920

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2012 01:28 PM
