• 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?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!