aspose file tools*
The moose likes Groovy and the fly likes Using two Datasources in grails 2.0.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Using two Datasources in grails 2.0.3" Watch "Using two Datasources in grails 2.0.3" New topic
Author

Using two Datasources in grails 2.0.3

ruchita mahajan
Ranch Hand

Joined: Jun 16, 2009
Posts: 33
Hi all,

I am new to Grails.I am trying to use two diffrent datasources in a single grails application for test purpose.Spent complete day on that but no sucess as of now.Please help me out in this
Thanks in Advance
RUCHITA
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Multiple Datasources
ruchita mahajan
Ranch Hand

Joined: Jun 16, 2009
Posts: 33
I am able to connect to two different schemas in two different databases.i dont want to hard code the datasource name while using any particular database.Is there any way out using annotations in groovy file which picks up the value of a particular datasource from properties.
 
wood burning stoves
 
subject: Using two Datasources in grails 2.0.3
 
Similar Threads
OSGi and Grails
Websphere
Retrieve values from a bean in JSP
[Griffon] My success story
Choosing web application framework