[hibernate-dev] [OGM] Transaction type "RESOURCE_LOCAL", still JTA is required
gunnar at hibernate.org
Tue Jan 13 13:18:15 EST 2015
For a demo I have an OGM application which defines a persistence unit with
transaction type RESOURCE_LOCAL.
I thus assumed I wouldn't have to add a JTA implementation to the class
path, but actually I'm getting a CNFE (see  for the complete trace):
ClassNotFoundException: Could not load requested class :
Indeed Arjuna is what we use as TM by default. It is set by OGM's
JtaPlatform implementation which in turn is used by transactions created by
OGM's default TransactionFactory .
Unless I'm doing something wrong configuration-wise, I feel that requiring
a JTA implementation for a non-transactional backend such as MongoDB is
confusing and may make users ask whether OGM is doing the right thing.
Would it be feasible to to provide an "OGM local" TransactionImplementor +
TransactionFactory to be used in such cases where the store does not
support transactions (so no rollbacks etc.), but we'd "only" need a trigger
for writing out changes to the datastore?
More information about the hibernate-dev