Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to use the Infinispan 2nd level cache outside of a J2EE server, and if so how do I set up the transaction manager lookup?

0
Posted

Is it possible to use the Infinispan 2nd level cache outside of a J2EE server, and if so how do I set up the transaction manager lookup?

0

I implemented the application following the instructions point 1-3, (see code below) using Enhydra StandardXADataSource implementation (better known under the name XAPool). To point 4 I must say that I use “org.hibernate.transaction.JTATransactionFactory” instead to “org.hibernate.transaction.CMTTransactionFactory” because I won’t use any container. Anyway by doing the implementation there are 2 further important aspects to be considered: 1.- the datasource must be JTA – aware. This means that someone must enlist the XAResource into the JTA transaction. This is usually done by the app. server, but we won’t have any in our scenario.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123