Tuesday, 28 June 2011

ActiveMQ and .NET combined!

Share
ActiveMQ is one of the most popular messaging frameworks. For sure the most popular open source framework. Many people think that ActiveMQ works only with Java and this is not true at all. ActiveMQ can work with almost every popular language (including JavaScript!) through numerous protocols which it supports.

Today I will show you how to use ActiveMQ in .NET-based solutions.

Monday, 20 June 2011

Passing backend data to JavaScript

Share
When you create your front-ends dynamically using JavaScript frameworks you have to work with the backend data: constants, URLs, labels, or localised labels.

Properties files are made for this. The problem is when you use frameworks like SenchTouch and your HTML body looks like this: <body />. The other problem is when some of the data is actually stored in database.

A very bad idea is to hard code copies of these values in JavaScripts. The presentation layer should not store any of these.

In general there are 3 ways of handling such situations. Here they are.

Thursday, 2 June 2011

Transactions and Isolation Levels explained once and for all (nHibernate examples)

Share
A question about transactions and isolation levels is one of my favourites when interviewing software engineers. Some of them heard about it, some of them know what they are, some of them can list them, some of them can describe them in detail. But there are also developers that don't have the slightest idea what are isolation levels.

Today, as a part of my nHibernate series I'll show you a unit test which shows you the behaviour of 4 isolation levels: read uncommitted, read committed, repeatable read, and serialisable.