we are trying to integrate jBPM 4.2 into an existing application using JPA via Spring. The idea is to have jBPM database and our domain database on the same Oracle (10.0.2) instance. We have a JPA transaction manager configured in an 'annotation-driven' way (@Transactional annotation) in our existing configuration which conflicts with jBPM's hibernate transaction manager.
After some research we have identified a few options (JTA, proxies, aspects, ...) and now we're trying to figure out which approach is the best. We suppose you may already have some experience in such configurations. Any ideas on where to start? What are the best practices in this case?
We will appreciate any help.
afaik, if you configure hibernate to use the JTA transaction, it should join it. That is how it normally should be done