• Post Reply Bookmark Topic Watch Topic
  • New Topic

is it ok to start a Hibernate transaction inside a JTA tx?

Ogi K
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a session bean method which has a container managed tx associated with it. It calls a method on a DAO class, which has:

tx = s.beginTransaction();

inside it. The reason being, this method could be called from within an already running JTA tx, or standalone, in which case, it would have it's own tx.

Is there a problem with this approach?
Onion rings are vegetable donuts. Taste this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!