Re: [rules-users] Drools 5.1 Persistence without JTA
it creates the error when the process is started.i.e when it trie to create the SessionInfo record - Keep Working KiranP -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-Persistence-without-JTA-tp828933p831029.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools 5.1 Persistence without JTA
I dont want to use the JTA transactions for process can this be done if yes please point me towards it thanks - Keep Working KiranP -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-Persistence-without-JTA-tp828933p828933.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1 Persistence without JTA
Hi Kiram, We are currently working, through the spring integration, on adding support for using processes without JTA. The only pending feature is the automatic rollback handling that JTA provides, that means that you *MUST* reload the session instance after a rollback. Here you have an example app: http://www.plugtree.com/downloads/DroolsFlowSpring.tgz -- Baunax On Wednesday 19,May,2010 09:22 AM, KiranP wrote: I dont want to use the JTA transactions for process can this be done if yes please point me towards it thanks - Keep Working KiranP ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1 Persistence without JTA
On 19/05/2010 16:13, Pablo Nussembaum wrote: Hi Kiram, We are currently working, through the spring integration, on adding support for using processes without JTA. The only pending feature is the automatic rollback handling that JTA provides, that means that you *MUST* reload the session instance after a rollback. I'm now wondering if automic rollback was such as good idea; I'm just not sure of a good way to ensure integrity between the rules and the process interactions if the current workingmemory becomes invalid. for processes it just loads the process on demand anyway, so automatic rollback isn't needed, for rules it's a little more complicated. Mark Here you have an example app: http://www.plugtree.com/downloads/DroolsFlowSpring.tgz ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1 Persistence without JTA
yea, for the process ( flow ) it seems to work fine using a regular org.springframework.orm.jpa.JpaTransactionManager: bean id=abstractKnowledgeProvider class=org.drools.container.spring.beans.persistence.JPAKnowledgeServiceBean abstract=true property name=entityManagerFactory ref=entityManagerFactory / property name=transactionManager ref=txManager / property name=variablePersisters util:map entry key=javax.persistence.Entity value=org.drools.persistence.processinstance.persisters.JPAVariablePersister / entry key=java.lang.String value=com.jpmc.tss.admincenter.framework.workflow.drools.variablepersistence.StringVariablePersister / entry key=java.io.Serializable value=org.drools.persistence.processinstance.persisters.SerializableVariablePersister / /util:map /property /bean bean id=txManager class=org.springframework.orm.jpa.JpaTransactionManager property name=entityManagerFactory ref=entityManagerFactory / /bean bean id=entityManagerFactory class=org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean property name=persistenceUnitName value=your.persistence.unit / property name=dataSource ref=datasource / property name=jpaProperties props prop key=hibernate.connection.autocommit${hibernate.connection.autocommit}/prop prop key=hibernate.max_fetch_depth${hibernate.max_fetch_depth}/prop prop key=hibernate.show_sql${hibernate.show_sql}/prop prop key=hibernate.dialect${hibernate.dialect}/prop prop key=hibernate.hbm2ddl.auto${hibernate.hbm2ddl.auto}/prop /props /property /bean bean class=org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor / bean class=org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor/ drools:connection id=connection1 type=local / drools:execution-node id=node1 connection=connection1 / /Anatoly -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-Persistence-without-JTA-tp828933p829922.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1 Persistence without JTA
initially thanks for ur replies. i downloaded the sample given Pablo Nussembaum but having problem drools-spring dependency saying missing artifact...tried manually browsing also but no good cant find it. to tolitius, thanks for that code snippet.what i tried was the same just i didnt had the drools tags if u can just pass the whole test case ( i am a newbie to this Drools-Spring integration thing so i need to find it out how it goes) the problem with mine was the table were getting created by the annotations but when trying to start process it gives exception saying could not commit session in SingleSessionCommandService.java file which actually calls the new InitialContext().lookup(java:UserTransaction) which actually fails thanks and regards - Keep Working KiranP -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-Persistence-without-JTA-tp828933p830964.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users