This week's book giveaway is in the
We're giving away four copies of
and have John Sonmez on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
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.
I agree. Here's the link:
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-2014