Skip to main content

Simon Brown

Based in London, Simon is a technical architect who likes to get his hands dirty and write the code after he's drawn the boxes. He's been using Java since the initial 1.0 release and has been involved with Java projects ranging from desktop clients to distributed enterprise systems. Outside of work, Simon has written and contributed to a number of books about the web-tier of J2EE and is a frequent speaker on such topics. He is also a fully trained bartender and, in his spare time, regularly helps out at JavaRanch – a friendly place for Java programmers.


simongbrown's blog

Message acknowledgment and redelivery with message-driven beans

Posted by simongbrown on June 3, 2004 at 2:23 PM PDT

We've been doing some prototyping over the past week and wanted to put together a simple enterprise application to prove some of the characteristics of JMS message processing via message-driven beans. The application server we're using is WebSphere Application Server 5.1 and for the purposes of our testing, we've been using the embedded messaging server.

Global setUp() and tearDown() in JUnit tests

Posted by simongbrown on April 16, 2004 at 2:43 PM PDT

Like many people, I want a way to run some one-time set up and tear down logic and the approach I usually take is to drop some code into a static initializer block in an abstract test case. For example...

public abstract class SomeTestCase extends TestCase {

  static {
    // perform the "global" set up logic


TagUnit and code coverage with Clover

Posted by simongbrown on March 24, 2004 at 1:25 PM PST

I've been using Clover for a few months now, but only in the context of my standalone JUnit tests and mainly from within IntelliJ IDEA. Having played with the Clover/Ant integration over the past few days, as with the IDEA integration, I can safely say that getting coverage reports for your unit tests is remarkably easy.

Displaying international characters in JSP

Posted by simongbrown on March 3, 2004 at 2:18 PM PST

I've been having lots of "fun" over the past days trying to figure out how to get JSP pages to properly display international characters. I've tried HTTP meta tags, JSP page encodings and seemed to be getting nowhere. If I have understood all the reading that I've done, then there are a couple of things that you should do to tell the web browser that you wish to display international (e.g.

JSIG session : Java Development on Mac OS X

Posted by simongbrown on February 24, 2004 at 5:10 AM PST

Sam Dalton and I are running a JSIG session about Java development on Mac OS X next month...

Testing MVC actions, mock objects and code coverage

Posted by simongbrown on January 21, 2004 at 8:41 AM PST

Mock objects are the subject of several blogs again this week and they reminded me of a question that several people have asked me.

London Java Meetup - Xmas Party 2003

Posted by simongbrown on December 10, 2003 at 1:41 AM PST

We're going festive at this month's London Java Meetup with our Christmas party on Monday, 15th of December.

Inconsistency between Servlet specification implementations

Posted by simongbrown on November 27, 2003 at 3:49 AM PST

I’ve been playing around with the various implementations of the security features in Servlet 2.3 compatible web containers. If you’ve ever built secure web applications, you’ll know that there are a handful of fairly useful methods on the HttpServletRequest interface.

Using mock naming contexts for testing

Posted by simongbrown on November 21, 2003 at 6:48 AM PST

Say for example that you want to unit test a Service Locator - a class that looks up data sources, topics, queues, etc from JNDI. How would you go about doing this?

Reasons to use Eclipse and SWT?

Posted by simongbrown on November 14, 2003 at 9:19 AM PST

I popped down to the JSIG today, the topic of which was Eclipse.