Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

is getRollBackOnly container callback?

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is EJBContext.getRollBackOnly() a container callback?
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No Alfred

You call EJBContext.getRollBackOnly() when you want to find out if the transaction has been marked for rollback ...
 
Alfred Harre
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lionel Orellana:
No Alfred

You call EJBContext.getRollBackOnly() when you want to find out if the transaction has been marked for rollback ...



Ok, I am confused here :roll:

EJBContext.getRollBackOnly() is for CMT only. It means, only container can call this method, right? If only container can call it then it is a container callback. (may be i am more confused than you initially thought )

Please correct me.
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJBContext.getRollbackOnly() is for CMT and UserTx.getStatus() is for BMT. These two methods are called by the bean provider to know the status of the tx.
getRollbackOnly() is used to find out whether the tx was set to rollback at any point using EJBContext.setRollbackOnly()
regds
Giju
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic