-
1. Re: jboss and jetty and datasource
oskarthiel Apr 10, 2003 10:42 AM (in response to diana)The problem lookes to me to be that the transaction is not commited before you read the new value. You need to force a commit if you wish to read the updated value in the same transaction.
/regards O -
2. Re: jboss and jetty and datasource
diana Apr 10, 2003 1:23 PM (in response to diana)ok, but, where I need to do commit?, because my code is correct when I run it into J2ee server.
thanks for replay!! -
3. Re: jboss and jetty and datasource
oskarthiel Apr 11, 2003 3:02 AM (in response to diana)Try calling commit() on your database connection once you have made the updates.
-
4. Re: jboss and jetty and datasource
diana Apr 11, 2003 12:30 PM (in response to diana)ready!! Thanks for your help, your idea was excellent!!
I wriote con.setAutocommit(false) before update and con.setAutocommit(true) after updtae an this solve my problem.
THANKS A LOT!! -
5. Re: jboss and jetty and datasource
diana Apr 11, 2003 12:32 PM (in response to diana)ready!! Thanks for your help, your idea was excellent!!
I wriote con.setAutocommit(false) before update and con.setAutocommit(true) after updtae an this solve my problem.
THANKS A LOT!! -
6. Re: jboss and jetty and datasource
diana Apr 11, 2003 2:15 PM (in response to diana)sorry, I have bad news, I forgot to write "con.commit" and when I wrote htis send me that i can't do commit when is running management conection.
I sad.
do you know what happend??
thanks