Thanks Kenny for your reply.I am not using <packaging>par</packaging>.I am using <packaging>jar</packaging> as I thought that building jar is sufficient for my final deployable war file.
And you are correct that every ejb module has its own persistence manager,I have 2 persistence.xml in 2 ejb modules. Do I need to change packaging as "par" ?Any other changes required i pom.xmlfor depenedncy on persitsence.xml?I am a first time user of Maven and dont know much about EJB. Anshuman On 5/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:
On Tue, 2 May 2006, Anshuman Srivastava wrote: Hi, Every ejb module has its own persistence manager, so you really need 2 persistence.xml files (unless I'm wrong..) I've got one in src/main/par/META-INF/persistence.xml - you're using the <packaging>par</packaging>, right? -- Kenney > Hi > > I have a multi module project.My problem is that 2 of my ejb modules have > the depedency upon peristence.xml, which is at the same location as pom.xml. > > How to define the dependency in pom.xml for peristence.xml?? > > My persistence.xml is like-- > > <?xml version="1.0" encoding="UTF-8"?> > > <persistence> > <persistence-unit name="dms" transaction-type="JTA"> > <provider>org.hibernate.ejb.HibernatePersistence </provider> > <jta-data-source>java:/OracleDS</jta-data-source> > <class>com.dms.dao.RepositoryDAO </class> > <properties> > <property name="hibernate.dialect" > value="org.hibernate.dialect.SQLServerDialect" /> > <property name=" hibernate.hbm2ddl.auto" value="none" /> > <property name="hibernate.show_sql" value="false" /> > </properties> > </persistence-unit> > > </persistence> > > Pleasehelp. > > Thanks in advance > Anshuman > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
