Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 0.2.1
-
Fix Version/s: 0.2.2
-
Component/s: Persistence
-
Labels:None
Description
Grails needs to be able to play in corporate environments where database URLs and passwords are not hard-coded in the war file. Also, developers generally should not have access to production database passwords. The way J2EE does this is with JNDI data sources that are managed by the DBAs or appserver administrators.
Please allow Grails to use J2EE JNDI DataSources. I hope it's OK that I marked this as being "Critical". It's actually a "Blocker" for me, but I didn't want to assume that the world revolves around me.
Thanks!
- Jonathan
Ok If you define a data source bean in the spring/resource.xml it will use this instead:
<bean id="dataSource" class="..">
//etc.
</bean>