Skip to main content

Gary S. Weaver


garysweaver's blog

Various Versions of Java and Mac OS X

Posted by garysweaver on April 18, 2011 at 11:13 AM PDT

I had referenced Ted Wise's post Using Java 1.5 and Java 1.4 on Snow Leopard in a project, and happened to notice a comment from a week ago about someone having trouble getting Java 1.4 to work in Mac OS X 10.7/Lion, so I decided to check it out, since I might also run into it later.

Using Nerot for Scheduled Task-based Caching of RSS, HTTP Get, or Custom Java Method Execution Results

Posted by garysweaver on October 28, 2010 at 9:36 AM PDT

If you need guaranteed fast response time and simple caching on an unruly RSS feed, some other HTTP resource accessible via HTTP Get, or for that matter just about any Java static or instance method, check out Nerot.

Apple's Java Versions Directory Needs Some Love

Posted by garysweaver on June 23, 2010 at 11:27 AM PDT

First off, I want to thank Apple for being such big supporters of Java. You may have gone off and done your own thing, but as Java developers, we still have to give some serious kudos.

Peering into the Pit of Jar Hell: How Symlinks to Jars Can Make You Run Screaming

Posted by garysweaver on May 22, 2009 at 10:00 AM PDT

Today I glanced into /usr/share/java in a CentOS release 5.2 (Final) server with Tomcat and Java installed via RPM. It literally burned my eyes, and hopefully you can see why.

My eyes first caught this:
libgcj-4.1.2.jar -> libgcj-4.1.1.jar
libgcj-tools-4.1.2.jar -> libgcj-tools-4.1.1.jar

Owww!!! It burns!

Mobile Device Support and Your Application

Posted by garysweaver on December 29, 2008 at 1:10 PM PST

For the several years (at least since mobile devices were able to browse the net in some form or fashion), companies and organizations have been interested (and increasingly so) in making their sites/web applications mobile-friendly.

But from what little I know, supporting mobile devices is not just as easy as a single differentiation in format.

Isolating Flow from Services

Posted by garysweaver on December 19, 2008 at 2:12 PM PST

As a follow-up from the previous article on the Interaction-Flow-Service-Model Architectural Pattern (IFSM), let's talk about suggestions for developing a more modular flow layer.

  • All non-flow-related logic should be pushed to service layer (or an additional service-logic layer).
  • Aim for

The Interaction-Flow-Service-Model Architectural Pattern

Posted by garysweaver on December 5, 2008 at 2:21 PM PST

There is one thing that I've overlooked until today, which is the importance of the division of the controller into application "flow(s)" and application "service(s)". For a good while now, I had been keeping controller code separate from service code (which in turn called the DAOs, that used Spring DAO, that used Hibernate, that interacted with the DB, etc.).

Lazy Testing in Java

Posted by garysweaver on August 28, 2008 at 7:33 AM PDT

Do you have almost no test coverage or perhaps none at all? Join the crowd. Although no one wants to admit it, a good part of the world runs on untested code.

Using NetBeans to Help Develop New JSR-168 and JSR-286 Portlets

Posted by garysweaver on August 19, 2008 at 12:59 PM PDT

Looking for information on how to quickly develop new JSR-168 and JSR-286 compliant portlets in an IDE an article called Developing Portlets with NetBeans Portal Pack 2.0.

Those instructions appear to mostly be geared for those looking to develop JSR-286 compliant portlets, so if that's your goal, those i

Using the GreenMail Java-based In-Memory MailServer in Integration Tests

Posted by garysweaver on August 7, 2008 at 12:31 PM PDT

You've used in-memory databases, such as HSQLDB (formerly called Hypersonic) or it's newer, faster cousin H2, but fewer have heard about the in-memory mail server, GreenMail by IceGreen.

According to their site, "GreenMail is an open source, intuitive and easy-to-use test