I assume _ctx is a jdbc connection? This looks like exactly the code needed for operation in a managed environment (actually I'm not sure about the rollback, but that's a different question). Is this code part of Castor or the jboss Castor plugin?
thanks david jencks On 2002.09.10 06:08:00 -0400 Andrew wrote: > Hi, I can't simple investigate cause of strange behavior of > Castor0.9.3.21 > in JBoss for now but > you can change close() method in DatabaseImpl.java to something like: > > public synchronized void close() > throws PersistenceException > { > try { > if ( _transaction == null ) { > if ( _ctx != null && _ctx.isOpen() ) { > try { > _ctx.rollback(); > } catch ( Exception except ) { > } > try { > _ctx.close(); > } catch ( Exception except ) { > } > throw new PersistenceException( > "jdo.dbClosedTxRolledback" ); > } > }else if ( _ctx != null && > _ctx.isOpen() ){//============================= that's added part > try { > _ctx.close();//====================this statement > closes connections > } catch ( Exception except ) { > throw new PersistenceException( > "jdo.TransactionContext:"+except.getMessage()); > } > } > } finally { > _scope = null; > } > } > > that's work in my case( I use container managed transactions). > Test it and if it's work/not work report the results to list- I need it > to > bug/fix report decision. > > Best regards. > > P.S. if someone need compiled class file -I can send. > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user