Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TransactionType in BMT  RSS feed

 
Cainiao Zou
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, im newbie in JPA world. I have a question:
For JTA, there are two subtype: CMT and BMT. I can choose them with @TransactionManagement.
There is a @TransactionAttribute before functions, i can use it to set the TransactionType. But I just found an example about it in CMT.
BMT is different, I need call the function begin() from an UserTransaction instance, so where and how should I define the TransactionType? Or there is no such thing in BMT? So how can I join my transaction into the one of caller? just like TransactionType.REQUEST

thanks
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or there is no such thing in BMT? so where and how should I define the TransactionType?


There is such a facility avialable inside BMT .

For example there is a method and you are calling another Method within that method then


pleae let me know , if you have any questions on this .
 
Cainiao Zou
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!