David,
I've put together a simple test program which shows the behavior I
described in the initial posting for this thread. I've attached the
source code, Junit test. and ANT script as a jar file.
When you run the test with 'no' transaction the test succeed. If you run
with transaction require
On 2003.01.06 05:53:21 -0500 [EMAIL PROTECTED] wrote:
> On Sun, Jan 05, 2003 at 11:32:05PM -0500, David Jencks wrote:
> > inside the jboss vm, if you start a user transaction or container
> managed
> > transaction, any connection obtained in the same thread is enrolled in
> the
> > transaction.
>
On Sun, Jan 05, 2003 at 11:32:05PM -0500, David Jencks wrote:
> inside the jboss vm, if you start a user transaction or container managed
> transaction, any connection obtained in the same thread is enrolled in the
> transaction.
I suppose it become more complicated in my case. I have one method i
inside the jboss vm, if you start a user transaction or container managed
transaction, any connection obtained in the same thread is enrolled in the
transaction. This assumes the connection is of a type that supports jta
transactions: for jdbc, this means you didn't set up a
NoTxConnectionManager.
I do not have any SQL statement, i.e. bean transactions and/or
persistency are all managed by the Container (CMP). Therefor I would
expect that upon the updateShippedQuantities remote method call
returning, the transaction would had been committed and persisted.
But since you mentionned it, the
You are not using pure SQL somewhere in this part? Cause if you do, this code run in
another transaction than the CMP-code and thus don't see the changes of the CMP before
that transaction is commited.
For me this resulted in the junit test failing, and I had to commit the
usertransaction inside
Kris [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 12:39 PM
To: JBoss User List Group
Subject: [JBoss-user] Transaction not saving entity bean changes
Hi, any help with this one would be appreciated.
** Environment:
- Plain out-of-the-box jboss-3.0.4_tomcat-4.1.12
- Window NT
Hi, any help with this one would be appreciated.
** Environment:
- Plain out-of-the-box jboss-3.0.4_tomcat-4.1.12
- Window NT, 4.0, patch-level 5
** Scenario:
- A stateless session bean method, i.e. updateShippedQuantities,
loops on an entity bean method call, i.e. updateShippedQuantity,