I know that finding JNDI in grails is as simple as
datasource {
jndiName = "java:comp/env/myDataSource"
}
This works great on Tomcat.
In other containers (WebLogic, JBOSS, etc.) jndiName for the same object will be simple myDataSource. The question is how to configure it as universal and portable so that the code does not need to be changed depending on the purpose of the deployment?
dbrin source
share