...
| Code Block | ||
|---|---|---|
| ||
<resource-ref>
<description>My DataSource Reference</description>
<res-ref-name>jdbc/DSTest</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
|
We For convenience, we will assume that all of the datasources are declared at the jvm scope, but this can be changed as neededyou can of course use other scopes, as discussed here.
Don't forget that all JNDI resources can be configured in a jetty.xml file or in a WEB-INF/jetty-env.xml file, or a context xml file. More information on that can be found hereon the page on JNDI.
| Anchor | ||
|---|---|---|
|
...