Embracing Mylyn

Thursday, August 26, 2010

As a developer, one of the things I really want to do with my work day is development. As a member of a development team, I recognize the need to identify tasks, prioritize work, and (sometimes reluctantly) quantify effort, both in pre-work estimates and post-work time accounting. When these tasks are tracked using compatible software, [...]

Gaining Access to the Spring Context in Non Spring Managed Classes

Monday, August 23, 2010

There are times where it’s not practical (or possible) to wire up your entire application into the Spring framework, but you still need a Spring loaded bean in order to perform a task.  JSP tags and legacy code are two such examples.   Here is a quick and easy way to get access to the application [...]

Mimicking External Actions With EasyMock

Thursday, August 19, 2010

It will happen sometimes that a unit test will need to do some work that an external source might normally do. One easy-to-see example of this is an ID that gets generated by a database when an entity is persisted. It may be the case that the software will assume success, but it could (nay, [...]

Integrating OpenSSO/OpenAM with Liferay Portal on Tomcat

Monday, August 16, 2010

This article will demonstrate how to integrate OpenSSO/OpenAM with Liferay Portal to achieve single-signon. Liferay Portal and OpenSSO both require a minimum 1.5 JVM, but I would recommend using Java 6 (as Java 1.5 reached its End of Service Life in October, 2009). Make sure that your JAVA_HOME environment variable is correctly set to point [...]

Spring @PathVariable Head-slapper

Thursday, August 12, 2010

Recently some peers and I spent a little time spinning around a goofy little annotation trick that Spring uses, that bit us because of the way p-code is generated. It all makes sense afterwards, but at the time it was a little frustrating and puzzling. Taken straight from the Spring documentation, the following example shows [...]

Developer Bits on Sustainable Computing

Monday, August 9, 2010

The world is trying to “green up” our cars, light bulbs, clothing, and even our laptops. Apple is pushing the greenest laptops of all time. Google goes lead free and commits to 100% recycling practices. Massive data centres recycle water and implement radical new energy efficient cooling technologies. But, as consultants, we primarily write code [...]