Adding JNDI to embedded Tomcat server in Grails 3

前端 未结 2 1319
甜味超标
甜味超标 2021-01-07 12:23

When running test-app in grails 3.0, or run-app, grails runs its own version of the embedded Tomcat server. I was able to conclude this from the following link: https://rosh

2条回答
  •  不思量自难忘°
    2021-01-07 12:59

    In Grails 3, you do it like this: SampleTomcatJndiApplication

    Typically, in Grails web applications, this is in /grails-app/init/Application.groovy

    (In my case, I commented out the jndiDataSource() part and just used postProcessContext().)

    Source: Graeme Rocher

提交回复
热议问题