Hi,
Tomasz Sulej wrote:
> It seems to be solved...
> But I need explanation why does it work like this?
>
> Inserted record appeared in database when I obtained connection within transaction
> (after tx.begin())
>
> Why I cannot take connection before transaction begins???
This may have changed, as I have not have had the time
to follow all commits lately.
But if I remember correctly:
If you are doing BMT, and do something like
conn = getConnection();
followed by
ut.begin();
your connection is _not_ enlisted with the
transaction you just started.
IMHO that is/was a bug in JBoss.
Problem is that the container does not keep
track of open resources, and thus does not
know which connections to enlist.
Best Regards,
Ole Husgaard.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user