Hi,
I'm trying to optimize my beans, but i have a strange
behaviour using transactions: my bean 'B' have a
method 'test' with the transaction type set to
'Required' while the 'B' transaction type is set to
'Supports'.
'Test' create 100 beans of type 'A' and exit.
I checked the log, and when i call 'Test' the
transaction is created and kept during the creation of
the 'B' instances (the tx name still be the same), but
it's about the 2x slower than using 'Supports' in both
beans.
The same test using JDBC, same database, same driver,
same data take 1/5 if i use a transaction instead of
autocommit.
Another strange thing is that at the end of 'Test'
appear many rows like that:
[A] beforeCompletion called
...
...
...
[A] afterCompletion called
...
...
...
While i expect one one of each type, since i expect to
have only one transaction.
I'm using the BETA-PROD-01 downloaded from the web
site, under windows 2000 with postgreSQL.
/Davide
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]