<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Grails Plugin for Multiple DataSources</title>
	<atom:link href="http://burtbeckwith.com/blog/?feed=rss2&#038;p=70" rel="self" type="application/rss+xml" />
	<link>http://burtbeckwith.com/blog/?p=70</link>
	<description>Burt Beckwith's Java Blog</description>
	<lastBuildDate>Thu, 26 Aug 2010 12:11:31 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rene</title>
		<link>http://burtbeckwith.com/blog/?p=70&#038;cpage=2#comment-36409</link>
		<dc:creator>rene</dc:creator>
		<pubDate>Thu, 26 Aug 2010 12:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://burtbeckwith.com/blog/?p=70#comment-36409</guid>
		<description>Hi Burt,

thank you for your quick reply. It works just perfectly!
Greetings from Switzerland
rene</description>
		<content:encoded><![CDATA[<p>Hi Burt,</p>
<p>thank you for your quick reply. It works just perfectly!<br />
Greetings from Switzerland<br />
rene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rene</title>
		<link>http://burtbeckwith.com/blog/?p=70&#038;cpage=2#comment-36408</link>
		<dc:creator>rene</dc:creator>
		<pubDate>Thu, 26 Aug 2010 12:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://burtbeckwith.com/blog/?p=70#comment-36408</guid>
		<description>Hi Burt,

thank you for your quick reply. It works perfectly!
Greetings from Switzerland
rene</description>
		<content:encoded><![CDATA[<p>Hi Burt,</p>
<p>thank you for your quick reply. It works perfectly!<br />
Greetings from Switzerland<br />
rene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burt</title>
		<link>http://burtbeckwith.com/blog/?p=70&#038;cpage=2#comment-36363</link>
		<dc:creator>Burt</dc:creator>
		<pubDate>Wed, 25 Aug 2010 20:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://burtbeckwith.com/blog/?p=70#comment-36363</guid>
		<description>@rene the bean name would be &#039;dataSource_ds2&#039;, so use &#039;def dataSource_ds2&#039;. You can also use DatasourcesUtils.getDataSource(&#039;ds2&#039;)</description>
		<content:encoded><![CDATA[<p>@rene the bean name would be &#8216;dataSource_ds2&#8242;, so use &#8216;def dataSource_ds2&#8242;. You can also use DatasourcesUtils.getDataSource(&#8216;ds2&#8242;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rene</title>
		<link>http://burtbeckwith.com/blog/?p=70&#038;cpage=2#comment-36360</link>
		<dc:creator>rene</dc:creator>
		<pubDate>Wed, 25 Aug 2010 20:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://burtbeckwith.com/blog/?p=70#comment-36360</guid>
		<description>Hi Burt,
Is there a possibility to auto-inject datasources defined in DataSources.groovy?
   I would like to use something like this for a read-only database access without domain classes
       class MyFancySqlController {
            def ds2 // like Spring-Bean? &quot;ds2&quot; is auto-injected 
            def list = {
                sql = &quot;select * from test_table&quot;
                def db = new Sql(ds2)
                def result = db.rows(sql)

                [ result: result ]
            }
        }

   This will end up in a null pointer exception because ds2 has not been auto-injected as excpected by me

regards rene</description>
		<content:encoded><![CDATA[<p>Hi Burt,<br />
Is there a possibility to auto-inject datasources defined in DataSources.groovy?<br />
   I would like to use something like this for a read-only database access without domain classes<br />
       class MyFancySqlController {<br />
            def ds2 // like Spring-Bean? &#8220;ds2&#8243; is auto-injected<br />
            def list = {<br />
                sql = &#8220;select * from test_table&#8221;<br />
                def db = new Sql(ds2)<br />
                def result = db.rows(sql)</p>
<p>                [ result: result ]<br />
            }<br />
        }</p>
<p>   This will end up in a null pointer exception because ds2 has not been auto-injected as excpected by me</p>
<p>regards rene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burt</title>
		<link>http://burtbeckwith.com/blog/?p=70&#038;cpage=2#comment-36318</link>
		<dc:creator>Burt</dc:creator>
		<pubDate>Wed, 25 Aug 2010 01:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://burtbeckwith.com/blog/?p=70#comment-36318</guid>
		<description>@Krish it&#039;d be helpful to know what your configuration is. Please send a descriptive email to the grails-user mailing list (http://www.grails.org/Mailing+lists) or create a JIRA issue at http://jira.codehaus.org/browse/GRAILSPLUGINS</description>
		<content:encoded><![CDATA[<p>@Krish it&#8217;d be helpful to know what your configuration is. Please send a descriptive email to the grails-user mailing list (<a href="http://www.grails.org/Mailing+lists" rel="nofollow">http://www.grails.org/Mailing+lists</a>) or create a JIRA issue at <a href="http://jira.codehaus.org/browse/GRAILSPLUGINS" rel="nofollow">http://jira.codehaus.org/browse/GRAILSPLUGINS</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
