-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I was looking at the examples in the tutorial and it seems that even
for doing a select, which is not going to be followed by an update or
delete, OJB seems to indicate that we need to do:

tx.begin();
... do select stuff here
tx.commit();

However I tested this with no begin and commit blocks and it seems to
work fine, as I would expect.  In JDBC one never really does any kind of
transactions when doing selects only.  Is there a reason why we need to
begin and end a transaction in selects?  Doesn't that also affect
performance?

Thanks
R
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/urXE+cV9vuB27SARAmoPAKC2TUGr2hmrihRDFuE16xb20YjXLQCdGQHM
VqUOPxuRdnoR1iYyEF/+fxo=
=BFoe
-----END PGP SIGNATURE-----


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to