Author Archives: Gordon

About Gordon

Technology enthusiast primarily focused on Java and Open Source projects. Spring Certified Professional and Trainer. http://twitter.com/gdickens

What is in my Cloud Environment?

I put together Java sample applications using Spring 3.1. Using Spring’s Environment abstractions, we can gather details about the underlying platform. See the following sample pages Jelastic: http://petclinic.jelastic.servint.net/clinic/environment Heroku: http://evening-window-9861.herokuapp.com/environment CloudBees: http://roobees.gdickens.cloudbees.net/environment Environment Bean package com.gordondickens.roobees.util; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; … Continue reading

Posted in Cloud, CloudBees, Heroku, Jelastic, Spring, Spring Roo | Tagged , , , , , , , | Leave a comment

Configuring Spring Roo for Java 7

When creating a Roo project with the “project” command, we have the option to specify the Java Version $ roo roo> project –topLevelPackage com.gordondickens.myproj –java 6 –projectName testapp If we choose Java 7 with Roo 1.2.1, the code will not … Continue reading

Posted in AOP, AspectJ, Java, Java 7, JDK7, Maven, Roo, Spring, Spring AOP, Spring Data, Spring MVC | Tagged , , , , , , | Leave a comment

Quick Install Open Source Apps on Mac OSX

A quick way to install many of your Open Source applications & tools on the Mac OSX is with HomeBrew. More and more, I am finding HomeBrew “recipes” for my commonly used applications, tools, etc. such as: Applications activemq gradle … Continue reading

Posted in HomeBrew, Installation | Tagged , , , , , , | Leave a comment

Installing and Configuring RabbitMQ

RabbitMQ and AMQP (Advanced Message Queuing Protocol) are gaining momentum in the market. One of the main reasons for that momentum is because, in enterprise development, the client is not always Java specific. With RabbitMQ, we can configure a scalable, … Continue reading

Posted in AMQP, Erlang, HomeBrew, RabbitMQ | Tagged , , , | 1 Comment

Unit Testing Spring with Mockito & PowerMock

Unit Testing Spring with Mockito & PowerMock I’ve updated my Spring Mockito Demo app that I demonstrate when teaching with a PowerMock of a final class with a static method. Demo Features Maven 3.0 Maven Enforcer plugin restricting use of … Continue reading

Posted in LogBack, Logging, Maven, Mocking, Mockito, PowerMock, SLF4J, Spring Framework, Spring MVC, Testing | Tagged , , , , , , , , | Leave a comment

Buzzing the Cloud with CloudBees and Roo

Looking to try out CloudBees for your Spring application? Here is how you can get started quickly with CloudBees Run@Cloud platform. 05-Mar-12 – Updated for Spring Roo 1.2.1 Get a CloudBees Account Configure a MySql instance on CloudBees Build a … Continue reading

Posted in Cloud, CloudBees, Roo, Spring, Spring Roo | Tagged , , , | 6 Comments

Rocket to the Cloud Fast with Roo

Want to build a Spring 3 application FAST and run it on the Cloud? It is incredibly easy to do with Spring Roo and CloudFoundry! This post on using Postgres on CloudFoundry helped me get started, however I tried using … Continue reading

Posted in Cloud, CloudFoundry, Java, Roo, Spring, Spring Data, Spring Roo | Tagged , , , , , , , , | Leave a comment

SyntaxHighlighter Missing XRegExp.js

I just ran into an issue when I updated my javascript files for SyntaxHighlighter. Looked at the error console and discovered that shCore.js could not find XRegExp.js. This blog link was a great start. Additional Details Syntax Highlighter Git Repo … Continue reading

Posted in JavaScript, jQuery, SyntaxHighlighter | Tagged , , , , , | Leave a comment

tcServer Logging with Logback & SLF4J

Logback and SLF4J provide better logging for java applications. To configure VMware vFabric tcServer to take advantage of the speed and flexibility of Logback use the following steps as a starting point. Download the tcServer Developer Edition free: http://www.springsource.com/developer/tcserver This … Continue reading

Posted in Jakarta Commons Logging, Java, Java Util Logging, LogBack, Logging, SLF4J, Spring, Spring Insight, tcServer, Tomcat | Tagged , , , , , , | Leave a comment

Adding Queries to Spring Data-JPA

In my previous post, Simpler JPA with Spring Data-JPA I showed how to configure a repository interface which Spring Data will implement for us. Let me show how easy it is to add queries. Modify the Repository Interface Simply define … Continue reading

Posted in Spring | 10 Comments