Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - which Persistence context should be used in Hibernate application working in J2SE

 
Witold Marshal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one of those three Persistence Contexts should be declared in hiberante.cfg.xml property for my J2SE project?

1. org.hibernate.context.internal.JTASessionContext

2. org.hibernate.context.internal.ThreadLocalSessionContext

3. org.hibernate.context.internal.ManagedSessionContext

I assume that first one (JTA) should be for sure discarded.
 
Witold Marshal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic