Month: July 2011

Colours of ls

The ls command list the files and directories (and other items) in a given directory. It can be asked to colour the output that it produces to give you an indication of what each file is and what permissions it has. Since I always forget what colour means what here’s a handy list of what …

Colours of ls Read More »

Getting Started with JEE 6 – CDI Qualifiers

In the last article we developed an application that had two alternative implementations of an EJB based QuoteService which unfortunately ran aground because CDI couldn’t choose which of our implementation to use. In this article I’ll discuss how to let the system know which implementation to use by using CDI qualifiers.

Getting Started with JEE 6 – Multiple Implementations of an EJB

In the previous part of this series we developed an application that contained a simple no interface EJB which fed quotes to a QuoteBean which, in turn, supplied them to the JSF page. In this part I’ll modify the QuoteService to make it an interface and then provide two different implementations of that interface.

Local transaction already has 1 non-XA Resource

While developing a bit of functionality that transferred data from one database to another in my current JEE 6 web application I came upon the exception below. Surprisingly for exceptions from deep within system this one is actually quite informative if you understand what it’s saying: the key is knowing that XA means distributed transaction. Transactions can be …

Local transaction already has 1 non-XA Resource Read More »