>One thing to be wary of that I've seen is the following:
I was under the impression that in an EJB context, calling getCOnnection()
implicitly started a trasnaction. No?   Thanks.

Ken

>Connection con = dataSource.getConnection();
>tx.begin();
>...
>tx.commit();
>con.close();
>
>which should be in this order instead (to allow correct tx management of
>connections:
>tx.begin();
>Connection con = dataSource.getConnection();
>...
>con.close();
>tx.commit();
>
>/R
>
>--
>Rickard �berg
>
>@home: +46 13 177937
>Email: [EMAIL PROTECTED]
>Homepage: http://www-und.ida.liu.se/~ricob684
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff EJB-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to