Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blog Entries by Topic

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Many times the toString() format is dependent on how the developer wants to see the state. I've seen formats to accommodate Swing, console, the debugger, and log files. To help format Value/Transfer objects consistently, I use a utility method that employs reflections. Use:public String toString() {    return ToString.format(this);}Sample output:  [
on Jun 10, 2004
A certain degree of copy and pasting occurs with every development project. The problem is many times overlooked, or missed during code inspection. Simian helps stop some of this monkey business by searching through text files (like Java and C#) and identifying duplications. To do some testing, I ran Simian against a recent project. After running through 250K+ lines of code (LOC) in 20...
on Jun 6, 2004


According to Kirk Pepperdine, Gartner does not include open source application servers in their surveys. Two interesting comments from Kirk's article: The next question is, how does open source get reported? By definition, open source draws no licensing revenues and by definition carries a 0% market share. Is it just me or am I right in saying that it just feels wrong to be basing an important...
on Jun 10, 2004
Logging with Log4J is simple and seems to be trivial and doesn't warrant a blog. However Logging in enterprise projects raises interesting requirements and possibilities. The first question is where do you put your Logging library. With JDK Logging, you pretty much have no choice. It is always located in the classpath and loaded by bootstrap classloader, the mother of all class loaders. Log4J...
on Jun 2, 2004
A couple years ago I tried my hand at self publishing books. Specifically, I created my own publishing company, Titan-Books Inc., and published three companion workbooks to my O'Reilly EJB book. The authors and editor did a wonderful job and the books turned out great. However, I quickly discovered that (a) it was lot of work running even a small publishing company and (b) I wasn't making much...
on May 31, 2004

Extreme Programming

Have you seen the 2-liter water rockets? My wife Maggie and I recently bought a launcher to entertain our kids. We about killed ourselves drinking enough rootbeer to empty the rockets, and then headed to the park. My daughters Kayla and Julia stood slack jawed, staring alternately at the aqua missle and their crazed daddy. You basically take a bike pump, a 2-liter soda bottle, and enough...
on Jun 10, 2004
Someone asked on the XP egroup about getting access to private methods for testing purposes. Others suggested a number of ways to get this effect, but it got me thinking about refactoring. Refactoring is often thought of as a pure, safe transformation: convert a program into another program with the same semantics but a better design. From the standpoint of a refactoring tool, the "same...
on May 31, 2004


It is a safe bet that relational databases will be around for a very long time. The relational model is well past middle age (it was introduced by E.F. Codd in 1970), but it exhibits no loss of vigor despite repeated challenges. Upstarts like Object and XML databases have garnered some support, but they haven’t yet made a dent in the preeminence of the RDBMS. Layers may be erected between...
on Jun 9, 2004
I experienced a problem where a client application accessing a server was unable to use the server to subsequently access a MySQL database. However, unit testing on the server side allowed the MySQL data access. What was happening to the server when using the remote connection then and why were SQL connection failure errors like the following being thrown? java.sql.SQLException: Server...
on Jun 3, 2004
This week I've been playing with a couple of things that I haven't used before - Struts 1.2-dev for one, and Hypersonic, a 100% Java RDBMS that supports transactions, RI, and stored procedures. I have been pleasantly surprised with both. I've always thought that Struts action mappings can be a bit cumbersome to write when there are lots of them. XDoclet can help here, but there are some new...
on May 29, 2004


Well, the earlier blather about the potential of open-sourcing Java seems to be squashed by this report. The biggest thing, IMHO, is Gosling's quote implying that there is a serious discussion about this going on inside Sun.
on Jun 5, 2004
The May monthly report has been posted in the java-net project's file sharing section in the Monthly Reports folder. Here are some highlights: membership rose to over 52,000 members. The project list grew by 66 new projects to 931. The new Java Enterprise Community was launched. The Java Education and Learning Community (JELC) was launched and combines the efforts of the existing...
on Jun 4, 2004
Gee, could this be any more wishy-washy? This article in the Inquirer quotes Sun's Java Technology Evangelist, Raghavan Srinivas saying that there will be an open sourced version of Java: "It might be today, tomorrow or two years down the road." Ah, the original source article has a bit more information.
on Jun 3, 2004
Last week I blogged on my day-to-day experiences at BEA eWorld. Now I am ready to reflect on what I learned. It’s easy to get caught up in the spirit of the moment when you attend a conference. The shiny baubles, the bells and whistles, the inspired evangelists and the cunning pitchmen all contribute to a pleasant stupor where all is well and no problem is without a solution. Fortunately...
on Jun 3, 2004
Over this past weekend, I took the family to Durango. Most of the time, I was a good boy, and dutiful father. No near drownings on the Piedra or Animas. No mountain bike overnights down the Colorado trail. Not even a difficult hike. In fact, my body is in no condition to do any of these things... But I did break away from the wife and kids for just long enough to do a 22-mile ride down Hermosa...
on Jun 3, 2004
FISL is the most important event about free software in Brazil. People from different countries come to attend sessions about free software such as Linux, PHP and others. As Java is starting to get more attention from the open source and free software community, there will be some talks about it in the main track. Besides that, SouJava, the largest JUG in Brazil, which I am proud to help to...
on May 28, 2004


Look at definition of Metadata: The J2SE 1.5 metadata feature is a facility that allows developers to annotate their code so that tools can generate boilerplate code (e.g stub generation to remote procedure calls) as directed by annotations. And think about those interfaces: Serializable and Cloneable. Those interfaces are empty. They contains nothing. But they are used to give directive to...
on Jun 3, 2004

Open Source

I just finished adding the Eclipse Public License to Wanna take a look?
on Jun 2, 2004


In a recent article, Sun President Jonathan Schwartz stated that he saw Red Hat as being a proprietary company, more so than Sun. Specifically: "Availability of source code isn't what qualifies you as 'not proprietary'-Sun's definition of proprietary is behavior which defeats the customer's ability to compete vendors against one another, or choose from among many 'compatible' implementations...
on Jun 1, 2004


In a previous blog on I said some fairly strong things about ant, and I think I ought to say something more, both good and bad. This seems like the place to do it. First, let us give ant its due. Ant is designed to be a portable way to replace make. Ant was to be platform independent, so the obvious implementation choice was Java, which is fine, mostly. And the obvious data...
on May 30, 2004