JeffBrooks wrote : anonymous wrote : The only solution I have found is like
raja05 said, is to put the persistence.xml in a jar file in the ear file. And
then reference from that persistence.xml file all the other jars.
|
| How exactly did you do that?
|
| Can you list what settings
I have the same problem so a solution would be very nice.
raja05 wrote :
| from the EJB Spec,
| Quote:
|
| A persistence unit must have a name. Only one persistence unit of any given
name may be defined within a single EJB-JAR file, within a single WAR file,
within a single
anonymous wrote : The only solution I have found is like raja05 said, is to put
the persistence.xml in a jar file in the ear file. And then reference from that
persistence.xml file all the other jars.
How exactly did you do that?
Can you list what settings you put into what files and show how
Right, but in my tests, if you had different unit names then the entity beans
couldn't have any relationships between them.
The only solution I have found is like raja05 said, is to put the
persistence.xml in a jar file in the ear file. And then reference from that
persistence.xml file all the
From the EJB Spec,
anonymous wrote :
| A persistence unit must have a name. Only one persistence unit of any given
name may be defined within a single EJB-JAR file, within a single WAR file,
within a single application client jar, or within an EAR (in the EAR root or
lib directory).
|
And
That said, the above dint work for a trivial example for me. Can you verify
this as well? (Or am i reading the spec wrong ?)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964830#3964830
Reply to the post :
Sorry scratch my previous comment, it does work well if you put the
persistence.xml in a jar file and make it a part of your archive. Note that you
would have to enter the jar file containing the managed classes in the
persistence.xml file.
View the original post :
hi all, i had already problem like this and my mistake was that i hadn't
unitname in the persistance.xml file
i think if u must add this in u your persistance.xml
| persistence-unit name=Blah1 transaction-type=JTA
| jta-data-sourcejava:/XAOracleDS/jta-data-source
|