[Opensource] minor pbs encountered switching from expresso 4.02 to 5.0

Thierry Clement Thierry.Clement at cetim.fr
Wed Oct 16 05:34:34 PDT 2002


I tried to update a working expresso app from expresso 4.02 to latest 
downloadable 5.0.
I could do it finally and it seems to work as previously. But I 
encountered two problems, which I solved my own way and would like to have 
feedback on it to be sure I did it right (may be it has to be corrected on 
CVS ?).

1. From expresso.tld, the tag "TransitionTag" has got a new attribute 
named "classvalue", but it seems it should be "classValue" .

2. I used to update my data from a MySql table configured so as to allow 
transactions (autocommit=false) - for that, in my Java code, I used to 
manipulate one or several  objects deriving from SecuredDBObject, 
specifying a connection (e.g. myConnection) with no autocommit in their 
constructor, retrieve and update them and then call myConnection.commit(); 
In expresso 5.0, I got an error message "connection is configured with 
autocommit=false"... I found out that the object JDBCExecutor from package 
com.jcorporate.expresso.core.dataobjects.jdbc released my connection too 
early (I thought I was supposed to release it myself) and I corrected it 
by changing 
if (myConnection != null { ...
to
                if (myConnection != null && localConnection == null) {
                    myPool.release(myConnection);
assuming, it is up to to the creator of the connection to release it after 
callin update

It works now but is that right ? btw, I didnt see any trace of package 
com.jcorporate.expresso.core.dataobjects.jdbc on CVS. Has it been 
suppressed ?


Thierry Clement
CETIM
France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20021016/ef253086/attachment-0002.htm


More information about the Opensource mailing list