Articles on Java

Alon Salant

Alon Salant

JRubyGems Release

I’m releasing a first version of JRubyGems. This post is documentation until I come up with something better. JRubyGems allows you to package RubyGems on your Java application classpath. It removes the file system dependencies on locally installed gems that get awkward when using JRuby and dependent gems in a Java environment. Usage Use JRubyGems

Alon Salant

Alon Salant

Thoughts on JRuby

At Carbon Five we have built our professional consulting practice on the solid foundation of enterprise Java development. In 2007 we added Ruby and Ruby on Rails as development tool and framework that complement our existing values and process in many fantastic ways. Looking forward, I want to be sure that we take maximum advantage

Alex Cruikshank

Alex Cruikshank

Parameterized REST URLs with Spring MVC

At Carbon Five, we’ve been working REST-ful practices into our web applications for some time now. Providing simple URLs for application entities is a key principal of this style, but parsing parameters out of the request path has been klunky in Spring MVC. Spring’s WebFlow apparently supports REST-ful URLs, but I’ve never found anything in

Alon Salant

Alon Salant

Using UrlRewriteFilter with the Spring Framework

UrlRewriteFilter is a powerful and widely used Java Servlet Filter for rewriting URLs ala Apache’s mod_rewrite module. We use Spring extensively at Carbon Five and I wanted to use UrlRewriteFilter with Spring-managed configuration and without having to register it in my web.xml file. Our content management system, SmileMaker, already uses Spring-managed filter chaining and I

Colors
Alex Cruikshank

Alex Cruikshank

Using Classpath*: vs. Classpath: When Loading Spring Resources

After a few hours of hair-pulling and a deep tour of the Spring source, we realized that the problem was that our test Spring configuration was in a different classpath root from our Hibernate mappings, even though both directories were in the test’s classpath.

Christian Nelson

Christian Nelson

DBUnit 2.2, Spring, and Testing

You may have noticed that DBUnit changed its connection closing behavior in v2.2. We noticed it when tests deriving from our custom DatabaseTestCase implementation (which uses DBUnit) starting failing. Initially we just reverted back to version 2.1. Since then I’ve discovered what the problem was and found a workaround, and while I was at it,

Alon Salant

Alon Salant

Presenting Spring AOP at SDForum April 4

I’m giving a presentation at the SDForum Java SIG tomorrow evening, April 4, on aspect oriented programming with the Spring Framework. I will be discussing a model for using the AOP features of Spring to expose Hibernate-managed POJOs to remote clients through web services complete with role-based security and declarative transactions. It follows one of

Alon Salant

Alon Salant

SsTemplates Spreadsheet Templates for Excel

I am writing to announce the public release of SsTemplates, our solution for creating Excel documents in Java. SsTemplates builds upon the Jakarta POI/HSSF libraries for writing Microsoft Office documents by providing a simple XML templating language for creating Excel documents similar to creating HTML pages with JSP and CSS. An example from the documentation: