I have JPA jar with persistence.xml and want to deploy in Jboss7.
Problem is that, i can't put inside WAR file(i know we can load from war file).
I have created module in jboss and placed jar file with including persistence.xml file inside META-INF\\ of the jar with ref: http://javahowto.blogspot.sg/2007/06/where-to-put-persistencexml-in-web-app.html Maven/Eclipse: Could not find any META-INF/persistence.xml file in the classpath
After that jar file loaded, but persistence.xml not loaded.
Is it possible to load persistence.xml from jar file ?
if possible, can someone please let me know, where to place inside jar
Thanks
If it is just about the persistence.xml, you could use a deployment-overlay. See eg https://docs.jboss.org/author/display/AS72/Deployment+Overlays
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.