users@glassfish.java.net

Re: Transaction control with EJB for FOR UPDATE

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 May 2007 00:44:59 PDT

Cheers, I'm guessing you mean your last post. If not could you give me a pointer to which one - you've got many answers on that thread ;)

Assuming it is the last one, i've implemented it as a local function on the bean and called it through an instantiation of the bean - but got the same results, so removed this extra code - i'll try it again to make sure (I created the bean reference using @EJB rather than using the SessionContext as suggested in case that makes a difference)

I've even moved the contents of the function call into the main function and placed it at the top of the calling function but i still see the same behaviour. The transaction is created before the update but after my select unless i use a resultSetMapping - which seems bizarre. I'll try the latest glassfish v2, but a bit of a pain as it breaks netbeans deployment handling..

Thanks
[Message sent by forum member 'jsl123' (jsl123)]

http://forums.java.net/jive/thread.jspa?messageID=217788