Hi Greg,
I am attaching:
persistence.xml
hibernate_processInstanceDS.cfg.xml
META-INF/context.xml
conf/context.xml
resources.properties
btm-config.properties
and
I have this in the web.xml
<resource-env-ref>
<resource-env-ref-name>jdbc/processInstanceDS</resource-env-ref-name>
<resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
</resource-env-ref>
I appreciate your help
Thanks
On Fri, Aug 27, 2010 at 9:52 AM, Chrystall, Greg <GChrystall(a)nds.com> wrote:
Yes you do need transaction management.
How is your datasource configured in hibernate?
Are you using jndi?
This may help:
http://docs.codehaus.org/display/BTM/Jndi13
The bit you want is this:
You just have to create a jndi.properties file in your classpath with this content:
java.naming.factory.initial=bitronix.tm.jndi.BitronixInitialContextFactory
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Gustavo Tenrreiro
Sent: 27 August 2010 15:36
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Is transaction management required for Drools process / session
persistence
Hi,
I am trying to do Drools persistence in Tomcat with Hibernate, but it
would seem it also requires transaction management. Is that true?
In the meantime I tried to setup Bittronix to provide the transaction
management, but I can't get Hibernate to find the datasource at all.
I ve followed the BTM integration instructions for Tomcat, I ve also
done followed the BTM integration instructions for Hibernate, but
still nothing, Hibernate keeps saying it can't find the datasource.
Can anyone shed some light on this ?
BTW: my database is SQL Server
Thanks
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United
Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603
8808 40-00
**************************************************************************************
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users