A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
rocket mass heater
subject: Exception ques.
WA #1.....word association
what is error?
Struts application design question
void return type in JSP expression
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015