Suppose there is a method named method_B which opens a jdbc connection directly using the jdbc API.
This method opens its connection with the autocommit attribute set to true and makes an insert.
This method was called from another method named method_A which has the transaction attribute set to required (TX_REQUIRED).
The method_A also calls a method_C that was not completed and throws an EJBexception.
method_A
{
try {
method_B();
method_C();
}
catch(EJBException e) { } etc..
}
the question is:
Does the container rollback the transaction did by method_A?
This method opens its connection with the autocommit attribute set to true and makes an insert.
This method was called from another method named method_A which has the transaction attribute set to required (TX_REQUIRED).
The method_A also calls a method_C that was not completed and throws an EJBexception.
method_A
{
try {
method_B();
method_C();
}
catch(EJBException e) { } etc..
}
the question is:
Does the container rollback the transaction did by method_A?