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
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()
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
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
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
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,
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
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"
.
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
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
>
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
11 matches
Mail list logo