ITeye博客

web.xml <resource-ref>

SuSteven · 2015-01-28 10:53 · web.xml · 编程语言 · Markdown

resource-ref元素

resource-ref元素声明了与一个资源工厂结合使用的外部资源。它包含一个可选的description元素、一个res-ref- name元素(资源管理连接工厂引用名)、一个res-type元素(工厂类型的完全限定类名)、一个res-auth元素(验证类型 Application或Container)和一个可选的res-sharing-scope元素(从资源中获得的连接共享说明--Shareable 或Unshareable)。下面是一个示例:

  1. <resource-ref>
  2. <res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
  3. <res-type>javax.sql.DataSource</res-type>
  4. <res-auth>Container</res-auth>
  5. <res-sharing-scope>Shareable</res-sharing-scope>
  6. </resource-ref>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。