<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kai Ramuenke &#187; Build</title>
	<atom:link href="http://www.ramuenke.de/archives/tag/build/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ramuenke.de</link>
	<description>Just another agile software development blog</description>
	<lastBuildDate>Wed, 20 May 2009 13:28:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running a memory-only HSQLDB in server mode</title>
		<link>http://www.ramuenke.de/archives/34</link>
		<comments>http://www.ramuenke.de/archives/34#comments</comments>
		<pubDate>Mon, 09 Feb 2009 11:05:45 +0000</pubDate>
		<dc:creator>Kai</dc:creator>
				<category><![CDATA[Agile Software Development]]></category>
		<category><![CDATA[ThoughtBlog]]></category>
		<category><![CDATA[Build]]></category>

		<guid isPermaLink="false">http://www.ramuenke.de/?p=34</guid>
		<description><![CDATA[In most of the project i&#8217;ve been working in we used a light-weight database like HSQLDB or H2 in the local development environment. It&#8217;s easy to set up in the build and you make yourself independent from the setup of the dev machines. Just check out the trunk and off you go.
It&#8217;s usually fine to [...]]]></description>
			<content:encoded><![CDATA[<p>In most of the project i&#8217;ve been working in we used a light-weight database like HSQLDB or H2 in the local development environment. It&#8217;s easy to set up in the build and you make yourself independent from the setup of the dev machines. Just check out the trunk and off you go.<br />
It&#8217;s usually fine to run a file-based database but in case you have to do your development on a windows machine a file based database is really annoying. Once a process has a connection to the database it locks the file. Can&#8217;t run the app in the web server and inspect the database with squirrel at the same time.<br />
The good thing is that HSQLDB allows you to run a memory-only database in server mode (haven&#8217;t checked H2). Start your server like this:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">java -cp ./hsqldb.jar org.hsqldb.Server -database.0 mem:mydb -dbname.0 aliasdb</pre></div></div>

<p>Instead of passing the database setup as parameters you can put them into a <code>server.properties</code> file which has to be in the same directory where you execute the command.</p>
<p>Then use this url to connect to your database:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">jdbc:hsqldb:hsql://localhost/aliasdb</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ramuenke.de/archives/34/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
