Questions tagged «resource-ref»

1
web.xml中的resource-ref有什么作用?
我只是想知道何时/为什么要<resource-ref>在您的元素中定义元素web.xml文件中? 我以为可以在JNDI的Web /应用服务器中定义它,然后在Java代码中查找JNDI引用? 资源引用定义对我来说似乎有点多余,我想不出什么时候有用。例: <resource-ref> <description>Primary database</description> <res-ref-name>jdbc/primaryDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>CONTAINER</res-auth> </resource-ref>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.