A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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
SCJP 5 Mock exam (Word document )
SCJP 5 Mock exam in Java.Inquisition format
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Exception ques.
Struts application design question
WA #1.....word association
void return type in JSP expression
what is error?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013