You are currently browsing the archives for the "java" tag.

How to use Google App Engine Java with Maven

January 08th 2010 - 2:51 pm by james

We all want to use Google App Engine with Maven, but Google stopped deploying GAE/J releases to their Maven repository for some reason. This article explains how to use Maven with App Engine. It also explains how to setup a local Maven repository. These instructions assume you’re using Linux.

(more…)


OpenID, Google App Engine, and Yahoo

November 23rd 2009 - 4:00 pm by james

If you want to use OpenID with Google App Engine / Java, try this library: dyuproject

It includes a standard Servlet Filter that restricts access to the URL prefix you specify. It also uses an internal HTTP library that is GAE compliant.

I was able to get it working with my app in about 30 minutes. For Google that is. Yahoo was a different matter.

(more…)


Don’t make a mockery of testing

February 02nd 2008 - 12:25 pm by james

If you’ve worked on a Java team that valued test automation, you’ve probably been exposed to EasyMock or JMock.

While well intended, these tools imply that teams should focus their testing efforts on granular unit tests that provide maximum code coverage. Often these teams do this at the expense of integration tests. Since time is always finite, we suggest you spend the majority of your testing time on integration tests. Only after you’ve exhausted all integration testing possibilities should you be tempted to use mocks.

(more…)


FTP passive mode and Java Sockets

November 09th 2007 - 6:21 pm by mike

Okay, my first blog entry. Be gentle…

I just spent most of the day diagnosing this problem with an FTP server and a Java application, and I thought maybe I could save someone the effort some time. (more…)


Replacing gcj on Fedora

October 23rd 2007 - 11:51 am by james

Due to licensing issues, Linux distros can’t distribute Sun’s JDK. Instead they use gcj, which in my experience is utterly broken. I just provisioned a new Fedora 7 VPS server today, and as part of getting tomcat and ant installed I needed to replace gcj with Sun’s JDK. Here’s the steps:
(more…)