A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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.
I agree. Here's the link:
subject: Exception ques.
what is error?
Struts application design question
void return type in JSP expression
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014