For EJB JAR files, the same resource-ref should be declared in each EJB that needs to access the data source.
对于EJB JAR文件,应该在需要访问数据源的每个EJB中声明同一资源引用。
The <resource-ref> tag is a way of saying, "This component has a dependency on an external resource." Listing 3 shows an example
<resource-ref> 标签的意思就是“这个组件依赖于外部资源”。
Note that we called our database pool adserver and that is the resource-link you see in the resource-ref and the dependency.
注意,我们把数据库池称为adserver,并且这是您在resource - ref和依赖关系中看到的resource - link。
应用推荐