cancel
Showing results for 
Search instead for 
Did you mean: 

how to replace the itabis with hibernate ?

qiqimm
Champ in-the-making
Champ in-the-making
Recently  I was confused about two problems:
1.in my project,our boss only allow use hibernate other than ibatis,
  how could i replace the ibatis with hibernate ,
  if i change the resouce code, how many days i need to do this job ?
2.what does the role of Alfresco act in activiti5 ? whether the Alfresco use to save the attachment ?
   whether we use other repository to replace Alfresco ?

thanks
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
1. Doing that is practically impossible if you dont know the code through and through. I wouldnt estimate it in days, but rather in months.
Then again, why does your bos doesnt want to run MyBatis? We use it compeletly hidden, and you never get to see it when working with Activiti.Furthermore, we have excellent integration with JPA if you want to store variables which are JPA entities.

2. Activiti is a standalone framework. Alfresco is not needed at all.

qiqimm
Champ in-the-making
Champ in-the-making
1. Doing that is practically impossible if you dont know the code through and through. I wouldnt estimate it in days, but rather in months.
Then again, why does your bos doesnt want to run MyBatis? We use it compeletly hidden, and you never get to see it when working with Activiti.Furthermore, we have excellent integration with JPA if you want to store variables which are JPA entities.

2. Activiti is a standalone framework. Alfresco is not needed at all.
===================================================================================
thanks for reply ,but in my project, activiti5 is as embedded framework,other framework in my project uses hibernate like jackrabbit ,if  activiti5 use ibatis,how does the transaction work with two session-factory?

javapapo
Champ in-the-making
Champ in-the-making
Eventually this is a very interesting point and actually from previous JBPM 3.x experience - we had the same constraint and requirement.

We wanted our JBPM sub project to 'stay' on top of the common persistence provider of the overall system thus we were re-using our hibernate.cfg.xml on the JBPM sub project.

Actually the question would be how transaction handling would be efficiently managed since a workflow will be manipulating resources - outside of it;s project scope. eg call EJB's, Facades, alternate the business domain model.

Any hints? (nice question by the way)

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
JTA manages the transaction 'issues' perfectly. Just make sure Activiti and your project are configured to use this. So it is as Joram states a 'non-issue'

jbarrez
Star Contributor
Star Contributor
Indeed, JTA transaction mgmt or a spring transaction manager does exactly that job.