-3

I am learning Hibernate from the latest 2016 edition (2nd) of the Java Persistence with Hibernate book. It appears I need a JTA Transaction Manager (TM), but I do not want to have to learn Spring at this point (as suggested in answers to other questions on this) because I perceive it as yet another huge set of infrastructure to learn with its own recursively huge tree of further topics to learn.

Is there a simple TM alternative I can use, or some other path I should be taking? Perhaps my perception of Spring is wrong and its TM is independent of its other pieces?

Jon
  • 101
  • 7
  • Not sure why asking for help here results in me getting negative votes? – Jon Jun 28 '16 at 08:28
  • 1
    you don't have to learn spring in order to use JTA as transaction manager in hibernate – Zulfi Jun 28 '16 at 08:42
  • JTA (the [Java Transaction API](https://en.wikipedia.org/wiki/Java_Transaction_API)) does not have anything to do with Spring, you don't need Spring to use it. – Jesper Jun 28 '16 at 12:16

1 Answers1

1

look at this answer, maybe you should what you are looking for.

Persistence unit as RESOURCE_LOCAL or JTA?

Community
  • 1
  • 1
duardito
  • 107
  • 2
  • 8
  • This answer, combined with an example [shown here](https://en.wikibooks.org/wiki/Java_Persistence/Transactions) helped answer this thanks. – Jon Jun 28 '16 at 08:42