Use of inbuilt Hibernate and Bitronix JTA

1
0
-1

Hi there,

I would like to make use of the inbuilt Hibernate and Bitronix JTA for my own database.

I can see where the resources for the databases are defined in /bin/setenv.bat, /conf/bitronix-resources.properties and /conf/Catalina/localhost/bonita.xml but have no-idea how to do the database access portion of coding, does anyone have an example of java code to do this?

Accessing the datasource, reading a set of rows, inserting and updating a record.

Many thanks and best regards Seán

1 answer

1
0
-1
This one is the BEST answer!

I don't think reusing the Hibernate instance used by Bonita Engine would be a good idea. It's likely to lead to unwanted interactions.

About the usage of JTA, if you want to integrate your application with Bonita Engine transaction, you can refer to the dedicated documentation page .

Comments

Submitted by Sean McP on Thu, 11/20/2014 - 06:06

Many thanks for the advisory, appreciated.

At least I now know to look at other options,

regards Seán

Notifications