oke methods on your method here
> ProcessInstance process = ksession.startProcess(
> "com.sample.ruleflow" );
> ksession.signalEvent("Test", "Test", process.getId());
>ut.commit();
>ut.begin();
>
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");
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
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
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
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.
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
>>
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
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
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
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
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
12 matches
Mail list logo