Configuring data source - tomee.xml, persistence.xml

徘徊边缘 提交于 2019-12-06 01:32:57

That's the whole point of a JNDI data source, to externalize it outside of your application, so you can modify it without recompiling or repackaging. So it is better to leave it this way.

For testing purpose, some EE server such as JBoss (Wildfly) let you define this in your project.

It might be a bit late to answer this, You can in tomee place the resource definition in WEB-INF/resources.xml.

John Velandia

You only have to set the tomee.xml. If you are using Eclipse, you must copy the tomee.xml into the servers configuration/Tomee to get recognize it into the web project, otherwise you will get troubles.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!