<?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[StackOverflow DevDays 2009 London]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/7IkZM4Ydt-g/index.php</link>
<description><![CDATA[Yesterday I attended <a href="http://stackoverflow.carsonified.com/events/london/">DevDays</a> in London and it was pretty good event. Most of the speakers were good and I think I learnt something new from every one of them. Unfortunately there was not too much time to network with other developers as the breaks were short and the catering was failing. I am look forward to attending it next year.<br />
<br />
<a href="http://www.flickr.com/photos/pepez/sets/72157622685399650/">Some photos of the event</a>]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=327</comments>
 <pubDate>Thu, 29 Oct 2009 23:40:27 +0200</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=327</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=327</feedburner:origLink></item><item>
 <title><![CDATA[Some Google Wave invites to give away]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/2RpmHN0rXqc/index.php</link>
<description><![CDATA[In case you are interested, drop me an email. You should know the address :-)]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=326</comments>
 <pubDate>Sun, 25 Oct 2009 00:22:46 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=326</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=326</feedburner:origLink></item><item>
 <title><![CDATA[Facebook and Twitter stole my blogging effort]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/Sz5x7U6P4V0/index.php</link>
<description><![CDATA[I have been really lazy to blog recently but my Facebook and <a href="http://twitter.com/pethie">Twitter</a> accounts have received regular updates. This seems to be common among bloggers as it is so much easier to blurp couple lines for an update. But blogging is not dead because it is a medium for longer articles.<br />
<br />
So, to summarise past month I could mention couple highlights. We made a trekking trip to Kingussie which was fun but we did not reach our goal. The route to the munro was way too muddy for our shoes. A pair of rubber boots would have been better.<br />
<br />
Then we had an autumn holiday. I visited Finland and Dóra visited Hungary. My trip was mostly about hunting with very modest results. I did not have time to visit friends but I met my brothers and their families.<br />
<br />
Among other things I have been dreaming about buying Canon 7D but I think it is a bit too expensive. And our Canon 450D is still doing pretty fine after 10K shots so there is no good excuse to spend around 1700 GBP... ]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=325</comments>
 <pubDate>Tue, 22 Sep 2009 21:59:13 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=325</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=325</feedburner:origLink></item><item>
 <title><![CDATA[Benefits of gym workout and home ergonomics for an office worker]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/z781vsiLIJw/index.php</link>
<description><![CDATA[In Hungary I sometimes had nasty headaches and clearly they were neck muscle related. I assume some tense muscles were pushing or blocking nerves and that caused migraine. But for my delight that seems to be history now.<br />
<br />
I think there are two things contributing to this. First of all, I do much more workout and outdoor activity than in Hungary. Visiting then gym with sauna two or three times a week keeps neck and back muscles fit. It also helps to relax after work and allows me to get rid of some code originated frustrations. The monthly fee of the gym is not too bad and I see it as investing in myself.<br />
<br />
Getting a new computer to replace 12" PowerBook has helped as well. 20" iMac results in a much more ergonomic home setup and I think the bigger screen is better for my eyes as well. I picked a nice mesh back computer chair from a local store couple weeks ago so things have improved even more. I think the next step would be buying a bigger table with more space for all these items.]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=324</comments>
 <pubDate>Sun, 9 Aug 2009 21:45:49 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=324</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=324</feedburner:origLink></item><item>
 <title><![CDATA[Secrets of sauna]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/e9NXeMtGejM/index.php</link>
<description><![CDATA[Quite often I have been asked about sauna. Being a Finn I, naturally, have an expert level knowledge about sauna. One common question is how one can like hot sauna. Simple, Finns are born in sauna so they get used to it right away. But sitting in a right place in the sauna helps a lot. In a square sauna where the sauna stove is in the corner, the hottest place is usually the opposite corner as the hot steam travels there first. So the Finnish guy sitting next to the sauna stove  and throwing plenty of water is barely getting warm.<br />
]]></description>
 <category>Culture</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=323</comments>
 <pubDate>Sun, 2 Aug 2009 18:43:34 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=323</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=323</feedburner:origLink></item><item>
 <title><![CDATA[Problems with JSON and trailing comma with IE6]]></title>
 <link>http://feedproxy.google.com/~r/hietavirta/ptHE/~3/3pzYRg9F_Iw/index.php</link>
<description><![CDATA[At work a GWT project was modified to use JSON instead of GWT RPC. It worked fine on FF3 and Safari but failed horribly on IE6. The error message was not too helpful: (TypeError): 'null' is null or not an object number: -2146823281 description: 'null' is null or not an object<br />
<br />
To investigate this I installed <a href="http://www.fiddler2.com/fiddler2/">Fiddler</a> to check responses sent by the server. It turned out that our JSON collections had an extra comma after the last item. This trailing comma caused IE to expect yet another item.<br />
<br />
Such a small and easy to fix problem but rather tricky to find - but that is life of a programmer.]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=322</comments>
 <pubDate>Wed, 29 Jul 2009 20:30:14 +0300</pubDate>
 <guid isPermaLink="false">http://www.hietavirta.net/blog/index.php?itemid=322</guid>
<feedburner:origLink>http://www.hietavirta.net/blog/index.php?itemid=322</feedburner:origLink></item><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>
  </channel>
</rss>
