[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-09-13 Thread buttmanizer
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-09-13 Thread webmarck
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-18 Thread JeffBrooks
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-14 Thread k34216
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
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 :

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
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 :

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread grdzeli_kaci
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 |