Re: [castor-dev] Transaction problem with JBOSS/castor

2003-11-14 Thread Konrad
Perhaps not the most elegant solution, but you could try: 1) getting the db connection first in b(), 2) passing the db connection to a() from b(), not closing the db connection in a(), but 3) closing the db connection in b() after the call to a() returns... At 08:48 03/11/12 +0100, you wrote

[castor-dev] Transaction problem with JBOSS/castor

2003-11-12 Thread Eike Mansfeld_ext
I 've got a serious transaction related problem with castor 0.9.5.2 and JBOSS 3.2.2. I am working with stateless session beans using CMT and castor. Usually a method like method a() { db =_jdo.getDatabase() // do something db.close(); } works fine. If a() is called within a second method b()

Re: [castor-dev] Transaction problem with referenced persistent objects

2003-06-06 Thread Richard Porter
06, 2003 11:22 AMTo: [EMAIL PROTECTED]Subject: [castor-dev] Transaction problem with referenced persistent objects I have a system using long transactions. In this system, I have a class representing an Order that references a class representing an OrderStatus. In the database, this is ach

[castor-dev] Transaction problem with referenced persistent objects

2003-06-06 Thread Richard Porter
Title: Transaction problem with referenced persistent objects I have a system using long transactions. In this system, I have a class representing an Order that references a class representing an OrderStatus. In the database, this is achieved with a foreign key relationship; in the Castor map

Re: [castor-dev] Transaction problem .... urgent.....

2003-03-07 Thread Bruce Snyder
This one time, at band camp, Niraj Juneja said: NJ>We have a scenario where we start the Transaction . NJ> NJ>Perform some work (query , updates and inserts) and NJ>then commit the transaction. NJ> NJ>We are using the following methods NJ> NJ>The Methods for transactions are as follows NJ>public v

[castor-dev] Transaction problem .... urgent.....

2003-03-07 Thread Niraj Juneja
We have a scenario where we start the Transaction . Perform some work (query , updates and inserts) and then commit the transaction. We are using the following methods The Methods for transactions are as follows public void begin() throws javax.transaction.NotSupportedException,

[castor-dev] Transaction problem, when using Castor in BMP EntityEJB, under Borland AppServer - solved

2002-12-08 Thread Assenov Lyubomir (external)
Hi Folks, I am here again after a short period of reinstallation and reconfiguration problems. Above all I would like to thank Bruce Snyder. Thanks a lot Bruce, your advice was exactly what I needed. :-) Bye. Lyubo. --- If you wish to unsu

[castor-dev] Transaction problem, when using Castor in BMP Entity EJB, under Borland AppServer

2002-11-22 Thread Assenov Lyubomir (external)
Hi everybody, I use Castor in a BMP Entity EJB, deployed on Borland AppServer with container managed transactions. The underlying database is Oracle 9. In com.xyz.MyBean I create and configure the JDO and get a Database connection from it: jdo = new JDO(); jdo.setDatabaseName("dbname"

Re: [castor-dev] Transaction Problem

2001-12-04 Thread Thomas Yip
.         Thomas     -Original Message- >From: yangj [mailto:[EMAIL PROTECTED]] >Sent: Monday, December 03, 2001 11:59 PM >To: [EMAIL PROTECTED] >Subject: Re: [castor-dev] Transaction Problem > >I test it using the latest code from CVS. >The test case is very simpl

Re: [castor-dev] Transaction Problem

2001-12-04 Thread yangj
eImpl.rollback(DatabaseImpl.java:522)    at cn.com.daidoh.prod.Test.main(Test.java:64)     - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 12:53 AM Subject: Re: [castor-dev] Transaction Problem >

Re: [castor-dev] Transaction Problem

2001-11-29 Thread Bruce Snyder
This one time, at band camp, yangj said: y > y > Inside a transaction ,if error ocurred before commit() ,execute rollback() y >will be right. y > But if error occured in excute commit(), execut rollback() will product y >error. y > The error reason seems when excute commit error happened, ris