Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
EJB Certification (SCBCD/OCPJBCD)
Joined: Oct 21, 2006
Dec 30, 2006 11:04:00
What will happen if I call getRollbackOnly() or SetRollbackOnly() of
in methods not marked with Required, RequiresNew or Mandatory? will I get an exception?
Joined: Feb 24, 2006
Dec 30, 2006 11:09:00
Why would you get an exception ? You would have a transaction and CMT and you can setrollbackonly from the context. Its legal. If you use the userTransaction however, thats another question.
SCJP 6 articles
SCJP 5/6 mock exams
More SCJP Mocks
Joined: Jul 09, 2005
Dec 30, 2006 17:19:00
Hmm... Assuming that am calling setRollbackOnly() in a CMT bean whose business method has a transaction attribute, NotSupported or Never, then an exception should definitely be thrown coz there is no active transaction available for rollback.
It is sorta covered in the
JavaRanch Style Guide
subject: Exception ques.
Struts application design question
WA #1.....word association
what is error?
void return type in JSP expression
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014