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 transacted sessions with other Java-technology, transaction processing facilities, for example, JTA?

0
Posted

Is it possible to use transacted sessions with other Java-technology, transaction processing facilities, for example, JTA?

0

Location: http://www.jguru.com/faq/view.jsp?EID=1149 Created: Nov 19, 1999 Author: Jerry Smith (http://www.jguru.com/guru/viewbio.jsp?EID=9) No. It is possible (if provided by the JMS implementation) to use JTA in the context of a session, but not a transacted session. That is, you cannot use Session.commit() and Session.rollback() in a context that’s controlled by an instance of UserTransaction. If, for example, one or more messages, in conjunction with database operations, all form a “logical transactional unit,” it’s usually best to take advantage of the transaction support provided by the JDBC driver, possibly augmenting this transacted (database) server operation with, javax.transaction.UserTransaction from the Java Transaction API (JTA), if JTA is implemented by the JMS server. Note that JMS implementations vary in their support for distributed tranaction processing. See the javax.jms.XA… interfaces in the API documentation.

Related Questions

What is your question?

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

Experts123