Skip to main content

Blog Archive for bakksjo during September 2005

I'm convinced; the people who made the CLDC spec gathered early in the process and decided: "We'll make sure nobody is ever going to be able to debug CLDC applications on a real device." At least that's how it seems. System.out and System.err go into a black hole. Throwable objects do have a stack trace, but what can you do with it? You can print it to System.out. Which is a black hole. In J2SE...
I found this article on integrating Derby with Tomcat. It shows three integration scenarios: The prototype integration Derby is used only by a single web application, but each HTTP request actually causes an attempt to load the Derby system (in embedded mode) into memory. A new connection is created for each request. There is no proper shutdown of neither single databases nor the Derby system....
In a series of blog entries, I intend to discuss various patterns for exception handling in Java. Don't use enumerated exceptions Quite often, you will see code using what I like to call "enumerated exceptions". An enumerated exception typically looks like this: public class ModuleException   extends Exception{   private int exceptionNumber;   public final static int...