01: package org.jbpm.persistence.jta;
02:
03: import org.jbpm.persistence.db.DbPersistenceServiceFactory;
04: import org.jbpm.svc.Service;
05:
06: public class JtaDbPersistenceServiceFactory extends
07: DbPersistenceServiceFactory {
08:
09: private static final long serialVersionUID = 1L;
10:
11: public JtaDbPersistenceServiceFactory() {
12: setCurrentSessionEnabled(true);
13: setTransactionEnabled(true);
14: }
15:
16: public Service openService() {
17: return new JtaDbPersistenceService(this );
18: }
19:
20: public void close() {
21: }
22: }
|