Re: [rules-users] Drools Human Task Service Persistence

2011-05-14 Thread Rui Tang
oke methods on your method here > ProcessInstance process = ksession.startProcess( > "com.sample.ruleflow" ); > ksession.signalEvent("Test", "Test", process.getId()); >ut.commit(); >ut.begin(); >

Re: [rules-users] Drools Human Task Service Persistence

2011-05-12 Thread Rui Tang
Drools Persistence JPA module must use JTA instead of local transaction. should change to and env.set( EnvironmentName.TRANSACTION_MANAGER, XXX ); your transaction manager should be get from JNDI like UserTransaction utx = (UserTransaction) ctx.lookup("java:comp/UserTransaction");

Re: [rules-users] Drools Human Task Service Persistence

2011-05-12 Thread Rui Tang
I'm not familiar with JBoss, but as I know, If you use JBoss as your tx manager, you should not create data sources by code, just config it in the JBoss way, and change your persistence.xml, just like what ram ram done. java:/comp/env/worDS Do you use the whole JBoss AS or only its transact

Re: [rules-users] Problem in getting session from JPAKnowledgeService.newStatefulKnowledgeSession();

2010-11-27 Thread Rui Tang
If you use BTM for JTA implementation, you cannot config your hibernate like this, please check the BTM online document. http://docs.codehaus.org/display/BTM/Hibernate2x You have to config data source in BTM properties files then refer to it in hibernate. 2010/11/26 Bennet Joseph > HI > > can

Re: [rules-users] Drools Human Task Service Persistence

2010-11-25 Thread Rui Tang
This is because I use some features that only ORM 2.0 supported. What is the version of hibernate entitymanager you are using? I use the latest 3.6.x and have got no errors. This seems that your hibernate version expects a fix version of 1.0. 2010/11/26, ramram : > > Hi all, > >I have the foll

Re: [rules-users] Can Drools Flow Persistence Work without JTA

2010-11-15 Thread Rui Tang
You can take a look at the >> drools-persistence-jpa module, there is a >> org.drools.persistence.session.TransactionManager, that is the interface >> you would have to implement, with the >> org.drools.persistence.session.JtaTransactionManager as a sample >> implementation.

Re: [rules-users] Drools Human Task Service Persistence

2010-11-15 Thread Rui Tang
date your drools version (ramram) you will > lose that kind of changes. > I think that the best solution is to create xml mappings for different > vendors.. Rui if you can contribute with that.. will be awesome! > Greetings! > > 2010/11/11 Rui Tang > > Hi, friends >>

[rules-users] Exception Thrown When Dispose KSession in JPA Persistence Environment

2010-11-14 Thread Rui Tang
Hi list, I have a simple program using drools-persistence-jpa library. StatefulKnowledgeSession session = null; try { ksession = JPAKnowledgeService.newStatefulKnowledgeSession(this.kbase, null, env); ksession.execute(myCustomCommand); } finally { if (ksession != null) { ksess

[rules-users] Some Code Problem about SingleSessionCommandService

2010-11-14 Thread Rui Tang
Hi list, During my application development, I encountered some problems about the exception handling within SingleSessionCommandService class. In this constructor public SingleSessionCommandService(KnowledgeBase kbase, KnowledgeSessionConfiguration conf

Re: [rules-users] Drools Human Task Service Persistence

2010-11-11 Thread Rui Tang
Hi, friends I'd like to add xml config to fix this this problem. Because sometimes, for different databases, we may need different mappings. E.g. we may need varchar2 in Oracle other than varchar in others. I've read some other one's note to say that it is better to define the relationship of ent

[rules-users] The Field rulesByteArray in Table SessionInfo Always Empty

2010-11-04 Thread Rui Tang
Hi list, I have a very simple webapp demo based on drools-persistence-jpa. I can obtain a StatefulKnowledgeSession from this statement: ksession = JPAKnowledgeService.newStatefulKnowledgeSession(this.kbase, null, env); and the SessionInfo will be stored into database correctly, except that

[rules-users] Can Drools Flow Persistence Work without JTA

2010-10-07 Thread Rui Tang
Hi list, According to the documents and some test cases, I found that Drools Flow persistence examples have to work with JTA to enable transaction management. Is there some way to not use JTA as my transaction manager? -- 唐睿 ___ rules-users mailing li