Does anyone know the best way to check if you are currently running in a
tx? (assuming EJB, container-managed tx.)
I would assume that the Castor code is already doing this somewhere.
Bob
Werner Guttmann wrote:
> Yes, it definitely does.
>
> On the subject of a unit test strategy ... this is going to be
> interesting. For testing JTA-enabled functionality, you will have to run
> within a (EJB) container, I'd assume ... and you'd have to use
> UserTransactions (whether programaticallly or through your deployment
> descriptor does not really matter). Iow, can you really run the same
> code in both environments without some adaptions ?
>
> Werner
>
> Bob Lee wrote:
>
>
>>Is the Castor JTA integration functional? For example, can I execute
>>Castor code in an EJB and have it be included in the current tx?
>>
>>If so, can anyone suggest a unit test strategy, i.e. for running the
>>same code in or out of a tx?
>>
>>Thanks,
>>Bob
>>
>>-----------------------------------------------------------
>>If you wish to unsubscribe from this mailing, send mail to
>>[EMAIL PROTECTED] with a subject of:
>> unsubscribe castor-dev
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev