[rules-users] Is transaction management required for Drools process / session persistence

Gustavo Tenrreiro gustavo at tenrreiro.com
Fri Aug 27 12:23:25 EDT 2010


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 at 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 at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Gustavo Tenrreiro
> Sent: 27 August 2010 15:36
> To: rules-users at 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 at 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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: btm-config.properties
Type: application/octet-stream
Size: 251 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100827/40a1ddc4/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: context.xml
Type: text/xml
Size: 414 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100827/40a1ddc4/attachment.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resources.properties
Type: application/octet-stream
Size: 550 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100827/40a1ddc4/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: context.xml
Type: text/xml
Size: 217 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100827/40a1ddc4/attachment-0001.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hibernate_processInstanceDS.cfg.xml
Type: text/xml
Size: 1200 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100827/40a1ddc4/attachment-0002.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: persistence.xml
Type: text/xml
Size: 4199 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100827/40a1ddc4/attachment-0003.xml 


More information about the rules-users mailing list