<?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: Scala example for accessing Ehcache Server</title>
	<atom:link href="http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/</link>
	<description>I am sick of simple. Things should be great!</description>
	<lastBuildDate>Wed, 21 Jul 2010 21:48:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christophe Grand</title>
		<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/comment-page-1/#comment-159</link>
		<dc:creator>Christophe Grand</dc:creator>
		<pubDate>Wed, 28 Jan 2009 19:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://gregluck.com/blog/2009/01/scala-example-for-accessing-ehcache-server/#comment-159</guid>
		<description>In Clojure:&lt;br /&gt;
If you just want lines:&lt;br /&gt;
(clojure.contrib.duck-streams/read-lines (java.net.URL. &quot;http://your.address/here&quot;))&lt;br /&gt;
or if you want a tree:&lt;br /&gt;
(clojure.xml/parse &quot;http://your.address/here&quot;)
</description>
		<content:encoded><![CDATA[<p>In Clojure:<br />
If you just want lines:<br />
(clojure.contrib.duck-streams/read-lines (java.net.URL. &#8220;http://your.address/here&#8221;))<br />
or if you want a tree:<br />
(clojure.xml/parse &#8220;http://your.address/here&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coda Hale</title>
		<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/comment-page-1/#comment-158</link>
		<dc:creator>Coda Hale</dc:creator>
		<pubDate>Wed, 21 Jan 2009 18:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://gregluck.com/blog/2009/01/scala-example-for-accessing-ehcache-server/#comment-158</guid>
		<description>Since we&#039;re golfing, the Ruby example listed has a bunch of requires that aren&#039;t used (rubygems, rexml), plus some useless variable assignment. Two lines are all that you need:
&lt;pre&gt;
require &quot;open-uri&quot;
puts open(&quot;http://localhost:8080/ehcache/rest/sampleCache2/2&quot;).read
&lt;/pre&gt;
Granted, it&#039;s not statically typed, and it uses Ruby&#039;s much-maligned Net::HTTP, and it makes open work on both files &lt;em&gt;and&lt;/em&gt; URIs... but hey.
Been waiting for a real-life need to play around with Ehcache -- might have to jump the gun a bit.
</description>
		<content:encoded><![CDATA[<p>Since we&#8217;re golfing, the Ruby example listed has a bunch of requires that aren&#8217;t used (rubygems, rexml), plus some useless variable assignment. Two lines are all that you need:</p>
<pre>
require "open-uri"
puts open("http://localhost:8080/ehcache/rest/sampleCache2/2").read
</pre>
<p>Granted, it&#8217;s not statically typed, and it uses Ruby&#8217;s much-maligned Net::HTTP, and it makes open work on both files <em>and</em> URIs&#8230; but hey.<br />
Been waiting for a real-life need to play around with Ehcache &#8212; might have to jump the gun a bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Clow</title>
		<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/comment-page-1/#comment-157</link>
		<dc:creator>Brad Clow</dc:creator>
		<pubDate>Wed, 21 Jan 2009 12:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://gregluck.com/blog/2009/01/scala-example-for-accessing-ehcache-server/#comment-157</guid>
		<description>Tom, I have written my rational about why the code sample is as it is &lt;a href=&quot;http://bradclow.blogspot.com/2009/01/scala-example-for-accessing-ehcache.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.
</description>
		<content:encoded><![CDATA[<p>Tom, I have written my rational about why the code sample is as it is <a href="http://bradclow.blogspot.com/2009/01/scala-example-for-accessing-ehcache.html" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Morrison</title>
		<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/comment-page-1/#comment-156</link>
		<dc:creator>Julian Morrison</dc:creator>
		<pubDate>Wed, 21 Jan 2009 07:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://gregluck.com/blog/2009/01/scala-example-for-accessing-ehcache-server/#comment-156</guid>
		<description>In Clojure that&#039;s:
(ns example-ehcache (:use clojure.xml))
(parse &quot;&quot;)
</description>
		<content:encoded><![CDATA[<p>In Clojure that&#8217;s:<br />
(ns example-ehcache (:use clojure.xml))<br />
(parse &#8220;&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Iry</title>
		<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/comment-page-1/#comment-155</link>
		<dc:creator>James Iry</dc:creator>
		<pubDate>Wed, 21 Jan 2009 00:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://gregluck.com/blog/2009/01/scala-example-for-accessing-ehcache-server/#comment-155</guid>
		<description>If we&#039;re counting lines then I get to play golf :-)
//in a file named ExampleScalaGet2.scala
import java.net.URL
import scala.io.Source.fromInputStream
fromInputStream(new URL(&quot;http://localhost:8080/ehcache/rest/sampleCache2/2&quot;).openStream).getLines.foreach(print)
//run with &quot;scala ExampleScalaGet2&quot;
</description>
		<content:encoded><![CDATA[<p>If we&#8217;re counting lines then I get to play golf <img src='http://gregluck.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
//in a file named ExampleScalaGet2.scala<br />
import java.net.URL<br />
import scala.io.Source.fromInputStream<br />
fromInputStream(new URL(&#8220;http://localhost:8080/ehcache/rest/sampleCache2/2&#8243;).openStream).getLines.foreach(print)<br />
//run with &#8220;scala ExampleScalaGet2&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Palmer</title>
		<link>http://gregluck.com/blog/archives/2009/01/scala-example-for-accessing-ehcache-server/comment-page-1/#comment-154</link>
		<dc:creator>Tom Palmer</dc:creator>
		<pubDate>Tue, 20 Jan 2009 20:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://gregluck.com/blog/2009/01/scala-example-for-accessing-ehcache-server/#comment-154</guid>
		<description>Probably should do try/finally/close on the stream in Scala, too. Or am I missing something?
</description>
		<content:encoded><![CDATA[<p>Probably should do try/finally/close on the stream in Scala, too. Or am I missing something?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
