TomEE supports Apache OpenJPA. What if I wanted to use Hibernate as my JPA provider ?
On Wed, Aug 19, 2015 at 9:53 PM, Alex Soto <asot...@gmail.com> wrote: > Yeah in this case you should take a look at Apache TomEE which is Apache > Tomcat + Java EE and you will get all of these for free :). > > El dc., 19 ag. 2015 a les 18:18, Daniel Mikusa (<dmik...@pivotal.io>) va > escriure: > > > On Wed, Aug 19, 2015 at 12:03 PM, Sreyan Chakravarty < > > sreyan.mail...@gmail.com> wrote: > > > > > I planning to use JPA (Hibernate) in a small project that I am > > developing. > > > Now I have heard a lot about the benefits of using Container Managed > > > Transactions(CMT) for JPA in web apps. But most of the tutorials on the > > web > > > use either GlassFish or JBoss, so I was wondering is CMT supported by > > > Tomcat. Send me a link to the documentation for this if there is any. > > > Please note that I am going to use a datasource to connect to my > database > > > and I am using persistence.xml(JPA style) to use Hibernate. > > > > > > > If you're referring to JTA, then no. Tomcat doesn't implement that. > > Tomcat only implements a subset of the JEE spec. > > > > http://tomcat.apache.org/whichversion.html > > > > However most of the parts of the spec that Tomcat does not implement can > be > > pulled in via libraries. For JTA you can use a third party > implementation > > with Tomcat. Atomikos, JOTM and Bitronix are ones that come to mind. > > > > These docs are a little dated, but should get you started. > > > > http://www.atomikos.com/Documentation/TomcatIntegration > > http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html > > > > Dan > > >