My jar is also in an ear. What I forgot to mention is that you need to add the 
jar into the application.xml description as a jar modue. So in my example I 
would have something like this in the application.xml:


  | <application>
  |     <display-name>MyApp</display-name>
  |     <module>
  |             <ejb>myapp.jar</ejb>
  |     </module>
  |     <module>
  |             <java>myjar.jar</java>
  |     </module>
  | </application>
  | 

And the following in the persistence.xml in the myapp.jar:


  | <persistence>
  |       <persistence-unit name="myunit">
  |      <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |      <jta-data-source>java:/MYDS</jta-data-source>
  |      <jar-file>../myjar.jar</jar-file>
  |       </persistence-unit>
  | </persistence>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935043#3935043

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935043


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to