Wolf-Dieter Fink [
http://community.jboss.org/people/wdfink] created the discussion
"Re: Multiple EntityManagers with different persistence units"
To view the discussion, visit:
http://community.jboss.org/message/624187#624187
--------------------------------------------------------------
For me it sounds principal right what you do first.
But I recommend to use a different database not the HSQLDB.
To analyze your problem you should attach the related WARN message. Maybe it helps if you
set 'org.hibernate' to TRACE for your test to see more.
A stateful session with extended persistence context looks not correct because this looks
like a typical stateless call to me.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/624187#624187]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]