on 02-05-2008 9:58 AM
Hi all,
we have a project which contains some ejb-module dcs. At the moment, each dc has it's own persistence.xml, which prevents us from using an entity contained in dc 1 from dc 2, because it in a different persistence context. Is there a best practice for this problem?
regards,
Christian
Hi, Christian,
If the entities within the two persistence units are used by a single application (that is, if you do not plan to reuse one of those DCs somewhere else), a possible best practice is to define all the entities within a single persistence unit (i.e. in either of the DCs, using only one persistence.xml file).
Best regards,
Yordan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.