users@glassfish.java.net

Re: Glassfish and Hibernate: How to have each transction use its own session

From: Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 09 Jun 2009 22:04:15 +0530

That's not enough. execute() is considered an EJB method call, so a new
tx begins for it, but not for any other methods that it calls directly.
You need to involve a second EJB to call the second method.

Sahoo

glassfish_at_javadesktop.org wrote:
> My apologies, I should have mentioned this in the original post:
>
> The methods in question are in a stateless EJB which is injected into the class that calls execute().
>
> Steve
> [Message sent by forum member 'ssaliman' (ssaliman)]
>
> http://forums.java.net/jive/thread.jspa?messageID=350068
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>