hi all,

I tried to test CMT using JBoss.
I made simple example using Session Statefull Bean updating the
database...
there is method that intentionally throwing exception - and i hoped
that all changes will be rollback but they didnt
i send u some code and XML settings:
method:
.........
updateChecking(checkingBalance);
            if (checkingBalance < 0.00)
            {
                context.setRollbackOnly();
                throw new InsufficientBalanceException();
            }
.....

in ejb-jar.xml
<container-transaction>
            <method>
                <description />
                <ejb-name>Bank</ejb-name>
                <method-name>*</method-name>
            </method>
            <trans-attribute>Required</trans-attribute>
        </container-transaction>

   could anyone help me why this transaction doesnt work?

  

-- 
Best regards,
 Nikolay                          mailto:[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to