users@glassfish.java.net

Re: Client transaction aborted?

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Tue, 27 Aug 2013 14:47:36 -0400

On Tue, Aug 27, 2013 at 2:16 PM, Marina Vatkina
<marina.vatkina_at_oracle.com>wrote:

> The EJB spec should a) describe the behavior of business method
> invocations in a transaction marked for rollback
>

Yes, please.


> [...] and b) allow to check rollback status in a SUPPORTS method if there
> is a transaction in progress.
>

Oh, this is not possible?

I don't disagree with you, but how would (b) help? Are you suggesting
allowing business methods that require or support a transaction to be
entered, even though they can't really do anything?

(I'd actually like to see EntityManager#contains(Object) relaxed to simply
return false if the object it is passed is not even known to it. But I'm
sure that has all sorts of other implications.)

Best,
Laird

-- 
http://about.me/lairdnelson