-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: One EntityManager or several EntityManager
PostPosted: Mon Mar 07, 2011 9:41 am 
Newbie

Joined: Thu Feb 24, 2011 10:02 am
Posts: 5
Hi @all,

I've got (a) very simple question(s).
In most examples online several classes have got their own EntityManager.
I think it's a waste to have to many EntityManager, isn't it?
So I'd create one in a session bean (or realated) to it, so every session has exactly one EntityManager.
All other classes will have access to this class. Does this approach have any disadvantages?
Is there a reason/advantage to have several EntityManager per Session?

Cheers,
Glotzich


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.