<?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: CF Groovy Takes a Nap</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2008/07/02/cf-groovy-takes-a-nap/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2008/07/02/cf-groovy-takes-a-nap/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: denny</title>
		<link>https://www.barneyb.com/barneyblog/2008/07/02/cf-groovy-takes-a-nap/comment-page-1/#comment-112561</link>
		<dc:creator>denny</dc:creator>
		<pubDate>Mon, 04 Aug 2008 05:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=433#comment-112561</guid>
		<description>Right-o!

I wanted database reverse-engineering for my hibernate thingermuhbob, and HibernateTools only seems to take a configuration-- can&#039;t pass in a datasource.  At least last I tried.

So I started using JNDI.  Seems like there&#039;s a lot of cool stuff you can do with it.

I haven&#039;t done any load-testing, but it would be interesting to see some stats, neh?  

I really need to come up with some type of load-testing strategy.  :-P


Anyways-- it&#039;s good to know passing in the datasource itself basically works!</description>
		<content:encoded><![CDATA[<p>Right-o!</p>
<p>I wanted database reverse-engineering for my hibernate thingermuhbob, and HibernateTools only seems to take a configuration&#8211; can't pass in a datasource.  At least last I tried.</p>
<p>So I started using JNDI.  Seems like there's a lot of cool stuff you can do with it.</p>
<p>I haven't done any load-testing, but it would be interesting to see some stats, neh?  </p>
<p>I really need to come up with some type of load-testing strategy.  :-P</p>
<p>Anyways&#8211; it's good to know passing in the datasource itself basically works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2008/07/02/cf-groovy-takes-a-nap/comment-page-1/#comment-112525</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Mon, 04 Aug 2008 03:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=433#comment-112525</guid>
		<description>denny,

Yep, that&#039;s basically what I&#039;m doing.  Even better, it works the same way on Railo.  However, seeding the SessionFactory with the data source itself, rather than individual sessions with a connection, makes things a lot simpler to deal with, so that&#039;s actually how I&#039;m doing it.  I had to use a thin wrapper around the datasource to provide to Hibernate, mostly to cover up the fact that Railo doesn&#039;t return a javax.sql.Datasource implementation like CF, but that&#039;s pretty irrelevant, and I&#039;d expect that to be fixed up in the next release of Railo.</description>
		<content:encoded><![CDATA[<p>denny,</p>
<p>Yep, that's basically what I'm doing.  Even better, it works the same way on Railo.  However, seeding the SessionFactory with the data source itself, rather than individual sessions with a connection, makes things a lot simpler to deal with, so that's actually how I'm doing it.  I had to use a thin wrapper around the datasource to provide to Hibernate, mostly to cover up the fact that Railo doesn't return a javax.sql.Datasource implementation like CF, but that's pretty irrelevant, and I'd expect that to be fixed up in the next release of Railo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: denny</title>
		<link>https://www.barneyb.com/barneyblog/2008/07/02/cf-groovy-takes-a-nap/comment-page-1/#comment-111992</link>
		<dc:creator>denny</dc:creator>
		<pubDate>Sat, 02 Aug 2008 09:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=433#comment-111992</guid>
		<description>You can get a connection from a CF DSN like this:

var dataSource = &quot;yourDSN&quot;;
var daFactory = CreateObject (&quot;Java&quot;,&quot;coldfusion.server.ServiceFactory&quot;);
var daConnection = daFactory.getDataSourceService().getDatasource(dataSource).getConnection();

You can then use it for a hibernate session (with setConnection()).

I think JNDI is a better bet tho, as you can rock caching, and distribution, and whatnot.

Cool stuff man!</description>
		<content:encoded><![CDATA[<p>You can get a connection from a CF DSN like this:</p>
<p>var dataSource = "yourDSN";<br />
var daFactory = CreateObject ("Java","coldfusion.server.ServiceFactory");<br />
var daConnection = daFactory.getDataSourceService().getDatasource(dataSource).getConnection();</p>
<p>You can then use it for a hibernate session (with setConnection()).</p>
<p>I think JNDI is a better bet tho, as you can rock caching, and distribution, and whatnot.</p>
<p>Cool stuff man!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
