File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes how to read DataSource.groovy file in grails to get the database connection details ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "how to read DataSource.groovy file in grails to get the database connection details ?" Watch "how to read DataSource.groovy file in grails to get the database connection details ?" New topic
Author

how to read DataSource.groovy file in grails to get the database connection details ?

Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
Hi All,

How to get database connection details(url,username,password and drivername...) in grails which is represented in ......\grails-app\conf\DataSource.groovy .



Please help me...

Regards,
Nazeer,,,,,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to read DataSource.groovy file in grails to get the database connection details ?