Я пытаюсь реплицировать атрибут resource-ref web.xml в моих веб-приложениях spring WebApplicationInitializer для настройки JNDI.
Как бы это сделать:
<resource-ref>
<description>Connection Pool</description>
<res-ref-name>jdbc/LocalCheddar</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
в java config, а не в xml?