<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>On the way</title>
    <link>http://www.hietavirta.net/blog/</link>
    <description>J2EE software engineer writing about working abroad, cultures and insights</description>
    <!-- optional tags -->
    <language>en-us</language>           <!-- valid langugae goes here -->
    <generator>Nucleus CMS v3.32</generator>
    <copyright>©</copyright>             <!-- Copyright notice -->
    <category>Weblog</category>
    <docs>http://backend.userland.com/rss</docs>
    <image>
      <url>http://www.hietavirta.net/blog//nucleus/nucleus2.gif</url>
      <title>On the way</title>
      <link>http://www.hietavirta.net/blog/</link>
    </image>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/hietavirta/ptHE" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
 <title><![CDATA[Spoiled plans]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/OJa88A11nsI/index.php</link>
<description><![CDATA[Ah, last weekend we were about to go biking around Loch Leven but bad weather and my flu ruined that plan. Instead the weekend was all about resting - which is not bad for some time. But next weekend should be better.<br />
<br />
I also had bad luck with cash ISA (tax free savings account) as I applied for higher rate account but First Direct introduced new lower rates while they were processing my application. I did not like that so I cancelled the opening - luckily I did not send transfer order before that.<br />
<br />
But at least now GBP seems to get stronger against Euro. That is good because our trip to Finland is approaching... holiday I say!]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=321</comments>
 <pubDate>Mon, 15 Jun 2009 17:42:05 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=321</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=321</feedburner:origLink></item><item>
 <title><![CDATA[Some experiences with JBoss Cache as Hibernate second level cache]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/iwkYSzsqGuo/index.php</link>
<description><![CDATA[Previously I did some initial setup for JBoss Cache and now I have tested it a little bit on a cluster setup. The setup has two virtual linux images with JBoss 5. In front of them is <a href="http://httpd.apache.org/">Apache HTTP</a> for proxying and load balancing.<br />
<br />
I started up JBoss on both machines with -c all. This setup has clustering turned on as a default so instances found each other and established JGroup communication channels. Then I deployed the .ear file directly to the deploy directory on each server as the farm deployment did not look too promising. The Apache proxy and balancer were already correctly configured so cookies and sticky sessions worked fine.<br />
<br />
The big question is naturally how the performance improved. First I ran a load test without second level caching or query caching in order to have a baseline for comparisons. Then I turned Hibernate second level cache on and executed the same load test. The results were showing around twofold throughput as the average response times halved. I also tried turning on query caching but I did not experience any significant difference with it. Maybe I did not have proper configurations.<br />
<br />
I also learned that it is not a good idea to modify data on the DB used by the cluster with Hibernate second level caching on. The nodes communicate sending invalidate messages to each other when data is changed and needs to be refreshed. Modifications outside the cluster mean that the cached data is stale but nodes do not know about it and resulting various errors...]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=320</comments>
 <pubDate>Thu, 28 May 2009 21:49:11 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=320</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=320</feedburner:origLink></item><item>
 <title><![CDATA[Hibernate second level cache with JBoss Cache 3]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/dNMifji0qKI/index.php</link>
<description><![CDATA[The project I have been working on lately is a web application running on JBoss 5. The production setup contains a cluster of JBoss instances behind Apache proxy which acts as a load balancer. So far load testing results have been encouraging and load tests also revealed couple bugs.<br />
<br />
Our persistence layer is using Hibernate so the next step in caching was to enable Hibernate's second level cache. There are various options but in our clustered environment <a href="http://www.jboss.org/jbosscache/">JBoss Cache</a> was the choice. But getting started with it took some time.<br />
<br />
The easiest way is to use 'all' server setup from the JBoss 5 and enable second level cache in Hibernate settings. <a href="http://www.jboss.org/community/wiki/ClusteredJPAHibernateSecondLevelCachinginJBossAS5">The JBoss community wiki page</a> provides an example for the setup. Also your JPA entity annotations or mappings need some changes as well because you need to define caching strategy for them.<br />
<br />
Taking a look at the documentation of JBoss Cache reveals huge amount of configuration options. Luckily only some of them are relevant for Hiberante second level caching. Be aware that JBoss Cache has been around for some time so some of the older tutorials and blog posts are outdated. At the moment JBoss Cache version 3.x is the recommended one.<br />
<br />
In case of caching it is very important to run proper load tests after each configuration modification to verify the performance gain or loss. At the moment I have my test setup running on <a href="http://jakarta.apache.org/jmeter/">Apache JMeter</a>. It creates similar load to the server based on historical usage data. Another area of testing is to verify that cluster's caches are having their state updated properly.<br />
<br />
I have been experimenting with JBoss Cache only for a day so it will take a bit more time before I can give my opinion or better advices. So, follow my RSS feed to learn more - hopefully soon there will be an update.]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=319</comments>
 <pubDate>Mon, 25 May 2009 22:00:38 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=319</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=319</feedburner:origLink></item><item>
 <title><![CDATA[Walkera 4#3b and sauna]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/CO4GF-HtRiE/index.php</link>
<description><![CDATA[As mentioned before, I ordered a new toy for myself. This toy is a tiny RC helicopter - Walkera 4#3b. Despite its tiny size and relatively cheap price it has 4 channel controller and it actually flies. Because it is electrical and tiny, it is possible to fly indoors. I did not have any experience with helicopters so I ended up crashing and crashing until I learned how to keep it hovering. Great fun and plenty of challenge!<br />
<br />
The sauna in the topic has nothing to do with helicopters. Instead, we found a nice gym in Kirkcaldy  and it has a proper sauna. I would pay the membership fee almost just for sauna usage but being able to do some work out is a big plus.<br />
<br />
 ]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=318</comments>
 <pubDate>Tue, 19 May 2009 22:45:24 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=318</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=318</feedburner:origLink></item><item>
 <title><![CDATA[What I have been up to lately]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/qv-xBDhG7ls/index.php</link>
<description><![CDATA[I have met some other Finns living in Scotland in couple different events. For some reason most of the other Finns were women married to Scottish men. Maybe Finnish men took Scottish women to Finland - or they avoided them altogether. Anyways, the wappu event organized by <a href="Scottish-Finnish Society">Scottish-Finnish Society</a> in Edinburgh was a great way to meet up and taste excellent home made sima.<br />
<br />
On the photography front I have taken plenty of photos but I have not spent fortunes on new camera gear. I think the current setup is decent enough and might need only couple minor things. A set of Kenko extension tubes is most likely next thing to get. Obviously the set is never complete, there is always a better lens or camera to buy.<br />
<br />
At work it has been busy enough. The project has been progressing nicely and working with GWT/GXT has been a good experience. The most recent highlight was from today as I set up a soft RAID 1 for new hard drives in my Ubuntu dev box. Of course I did not figure out the setup myself, the <a href="http://kuparinen.org/martti/comp/ubuntu/en/raid.html"> instructions</a> were clear enough.<br />
<br />
Oh yea, I also ordered a new toy for myself. It is still on the way from Hong Kong so have not tried it out, yet...]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=317</comments>
 <pubDate>Tue, 5 May 2009 23:13:32 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=317</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=317</feedburner:origLink></item><item>
 <title><![CDATA[Biking north along Fife coastal path]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/-DW6-lwLfRU/index.php</link>
<description><![CDATA[<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;source=embed&amp;msa=0&amp;msid=109999012764115853521.000466cfb7465a312b2e5&amp;ll=56.131776,-3.14003&amp;spn=0.066965,0.145912&amp;z=12&amp;output=embed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;source=embed&amp;msa=0&amp;msid=109999012764115853521.000466cfb7465a312b2e5&amp;ll=56.131776,-3.14003&amp;spn=0.066965,0.145912&amp;z=12" style="color:#0000FF;text-align:left">Kirkcaldy-West Wemyss-Dysart</a> in a larger map</small>]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=316</comments>
 <pubDate>Thu, 9 Apr 2009 00:10:10 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=316</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=316</feedburner:origLink></item><item>
 <title><![CDATA[Management decision making tool]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/7OWfA5MNyRA/index.php</link>
<description><![CDATA[Forget SWOT analysis and other nonsense. <a href="http://www.random.org/coins/?num=1&cur=60-eur.finland-2euro">This</a> is the tool of the future. Well, and past as well...]]></description>
 <category>Money and Economy</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=315</comments>
 <pubDate>Wed, 8 Apr 2009 22:13:28 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=315</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=315</feedburner:origLink></item><item>
 <title><![CDATA[Social Innovation Camp]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/xhOn9D8y3tM/index.php</link>
<description><![CDATA[Today my colleague gave me a leaflet advertising <a href="http://scotland.sicamp.org">Social Innovation Camp</a>. The idea sounds interesting and most likely I will try to attend because there will be a camp taking place in Glasgow. Now I just need a great idea or two...]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=314</comments>
 <pubDate>Mon, 30 Mar 2009 21:46:01 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=314</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=314</feedburner:origLink></item><item>
 <title><![CDATA[New interest and new blog - Apertoire]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/A1pCtSkSgd8/index.php</link>
<description><![CDATA[I felt like writing about photographing but this blog is already full of various post about relocation, living abroad and software engineering. Adding photography would mess it up even more. Therefore, I set up <a href="http://apertoire.blogspot.com">Apertoire</a> blog. Feel free to visit it and add it to your favorites.]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=313</comments>
 <pubDate>Sun, 22 Mar 2009 20:33:20 +0200</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=313</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=313</feedburner:origLink></item><item>
 <title><![CDATA[How to contact software developers in Scotland?]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/tTy9Sx-tsDw/index.php</link>
<description><![CDATA[Getting to know local people with similar interest both integrates you and improves your skills. Here are couple starting points if you are new in Scotland and you would like to expand your network.<br />
<br />
User groups:<br />
<a href="http://ukjugs.org/">Java User Group Scotland</a><br/><a href="http://scottishdevelopers.com/">Scottish Developers</a><br/><a href="http://agilescotland.blogspot.com/">Agile Scotland</a><br/><a href="http://edinburgh.bcs.org.uk">BCS Edinburgh Branch</a><br/><br />
<br />
Events:<br />
<a href="http://www.techmeetup.co.uk/">Tech MeetUp</a><br/><a href="http://barcamp.org/BarCamp-Scotland-2009">BarCamp Scotland</a><br/><a href="http://developerdayscotland.com/">Developer Day Scotland</a><br/><a href="http://scotlandonrails.com/">Scotland on Rails</a><br/><br />
<br />
There are much more outside this list - so submit your favorite computing related group or event by sending me email or through comments.]]></description>
 <category>Culture</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=312</comments>
 <pubDate>Mon, 16 Mar 2009 00:05:10 +0200</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=312</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=312</feedburner:origLink></item>
  </channel>
</rss>
