1. JBoss: Running Multiple Instances on One Host

    Occasionally, it's useful to run multiple JBoss instances on one machine. Like with any network server, this is difficult because only one application can bind to a port at any given time. You have to assign different sets of ports to each instance. JBoss consists of quite a few network …

    read more
  2. Gnome Terminal: Stop Cursor From Blinking

    I'm currently setting up my new Laptop with Ubuntu Natty. Apart from all the things I hate in Unity (the list is long), there's one recurring annoyance: the blinking cursor in Gnome Terminal. There's no menu setting to disable it, but fortunately, there's still a way to fix it.

    You …

    read more
  3. OpenID Delegation

    OpenID is a great concept but what I don't like is that I tie myself to a specific identity provider. Suppose the provider goes out of business or doesn't support OpenID anymore. Of course, I could set up my own private identity provider but I'm lazy and I don't want …

    read more
  4. Ubuntu Natty vs. nVidia

    Despite all the problems I had with Ubuntu updates over the last couple of years, I decided to update my work machine to Ubuntu 11.04 ("Natty Narwhal"). I expected problems and I wasn't disappointed, after the upgrade I was left standing in the dark, without X.

    Fortunately, the rest …

    read more
  5. Excluding Pages From Authentication

    Java's Servlet spec allows web applications to delegate authentication and authorization to the servlet container, a mechanism known as container-based security. A lot of people use it for in-house applications or web services because it's simple and containers like Tomcat already provide several authentication backends to choose from. There's one …

    read more
  6. Enabling JMX Access on Tomcat

    I think every Java application in production should enable JMX access. Without JMX, there's little chance to debug JVM-level problems, especially those related to out of memory errors. Even if your application doesn't export its own MBeans for monitoring, you can still take advantage of those that come out of …

    read more
  7. Books on Software Design

    A colleague asked me to recommend some books on software design. That's a good opportunity to have a look at this particular part of my bookshelf and select a few highlights. As usual, you can't go wrong by reading Fowler, but let's see what we've got.

    Ranging on the border …

    read more
  8. JUnit: Using External Resources

    Many integration test cases need access to external resources like files or databases. Dealing with external resources is always messy because you have to set up state and tear it down later. Since JUnit 4.7, there's a mechanism that makes things a bit more convenient.

    Previously when you had …

    read more

social