Hi!

I'm using ObjectDB and Tomee 1.5.2 and I've faced the following problem,
which is described here:
http://www.objectdb.com/database/forum/660
<http://www.objectdb.com/database/forum/660>  

Quick overview: @Stateless method execution might not close injected
EntityManager, therefore the database throws the following error (Entity
belongs to another EntityManager) when an entity obtained through a query in
a @Stateless bean is used in another query in another of another @Stateless,
in 2 different transactions.

Is that the right behavior of @Stateless? Shouldn't the EM manager be method
transactional by default, thus not triggering this error?

Please check the error report from ObjectDB's forum (the link above) for
more details.
Thanks in advance.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Entity-belongs-to-another-EntityManager-Stateless-bean-error-tp4664720.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to