setRollBackOnly() is available on SessionContext and MessageDrivenContext.
So this method works successfully if the following conditions are met
1. Session Beans or Message Driven Beans should use CMT (Transaction should be managed by container) and also
2. The method should be called in transactional context
It will throw
IllegalStateException if
1. called in non transactional context or
2. called by the BMT bean
-------------------------------------
LakshmiNarayana Kodali
SCJP 5(98%), SCWCD(100%), SCBCD in progress
[ December 26, 2008: Message edited by: LakshmiNarayana Kodali ]