JodaTime setCurrentMillisSystem()

When programs have logic based on the current time, it's important to be able to programmatically set the current time for testing purposes. Other not so great options we have…

Continue Reading JodaTime setCurrentMillisSystem()

Date Binding in Spring MVC

Here's how to accept java.util.Date parameters in your Spring MVC Controller. This has been tested on Spring 3.1. 1. In your Spring MVC Controller, add a request parameter with a…

Continue Reading Date Binding in Spring MVC

How to Add Cipher Suites Support in Openfire and Smack

Creating the Openfire Patch This is how to patch Openfire to add cipher suite support. 1. Download the Openfire source distribution from http://www.igniterealtime.org/downloads/source.jsp. 2. Edit the class org.jivesoftware.openfire.nio.NIOConnection. 3. Look…

Continue Reading How to Add Cipher Suites Support in Openfire and Smack