I have found that when using connections in Jonas without a transaction 
context, Jonas will not make sure that the connection passed back from 
the pool belongs to the user requested from the application code. For 
example, if somewhere in your bean you do:

     Connection conn = dataSource.getConnection(dbUser, dbPassword);

you might get a connection which belongs to a different user if another 
session has already created and closed a connection. This is because 
Pool.openConnection(String user, Transaction tx) ignores the user 
parameter! If the transaction is not null, it uses a hash lookup to grab 
the coressponding connection. However, if the tx is null, it just grabs 
the last free connection off a ll. Seems to me that a hash lookup by 
user should be done here as well.

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to