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]

Reply via email to