I'll build a minimal test bean (or beans - this might also involve the
fact that I'm calling from a session bean) this evening and forward it
along.

On Mon, 22 Jan 2001, Peter Braswell wrote:

> 
> Danch,
> Hi!  Perhaps you could send along a code snippet and I
> can incorporate it into JCTS???
> 
> thx,
> peter
> 
> --- danch <[EMAIL PROTECTED]> wrote:
> > With tonight's CVS as well as 2.0 FINAL, if an
> > ejbLoad method throws an 
> > EJBException (or any runtime exception), JBoss fails
> > to rollback the 
> > transaction and discard the bean instance per spec.
> > (section 12.3 of the 
> > 1.1 spec).
> > 
> > This might be a fairly nasty issue: my initial
> > symptom was having later 
> > requests for the same bean doing the
> > 'LOCKING-WAITING' thing in 
> > EntityInstanceInterceptor, which indicates that the
> > transaction stuff 
> > never let go of the bad bean, either.
> > 
> > Looking into TxCapsule, it looks to me like if an
> > exception is thrown 
> > out of doBeforeCompletion (like this), endResources,
> > afterCompletion, 
> > etc. never get called. Since afterCompletion (on the
> > 
> > InstanceSynchronization inner class in
> > EntitySynchronizationInterceptor) 
> > seems to be where the instance gets disassociated
> > from the transaction.
> > 
> > I'm thinking that TxCapsule needs to be beefed up
> > WRT exception 
> > handling, which could accomplish the rollback. That
> > should also arrange 
> > for the instance that's at fault to not go back into
> > the pool in 
> > afterCommit, but I'm not sure how that would be
> > accomplished.
> > 
> > g'd night!
> > danch
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices. 
> http://auctions.yahoo.com/
> 

-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com)

Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA.

---------------------------------------------------------------------------
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait.
-Eben Moglen


Reply via email to