about 1 year ago - No comments
We came up with a not so un-common use-case of wanting to setup a Jedis connection pool that would automatically select a given database index on each connection. A colleague and I were about to patch the Spring-Data source code (we are already running a patched version), but instead found a very elegant solution by
about 1 year ago - No comments
I’ve had it! When I go out clubbing and hit on women, one of the things that invariably comes up in the conversation is which date library I code to when using my made skillz in Java. Word to the wise: Do NOT answer that you use the Java Date or Calendar classes. Too many
about 1 year ago - No comments
As per my last post, we are currently looking into migrating from ActiveMQ towards HornetQ. One of the missing features which we used and depend on are dynamic queues and topics. Our main goal is to avoid touching any java code and depend solely on Spring configuration changes. Non dynamic destination configuration through spring <bean
about 1 year ago - No comments
In a recent conversation with a colleague we discussed where the line was drawn between types of tests. Unit tests Unit tests usually won’t cross the boundaries of a class. There are definitely times when it’s acceptable, but generally speaking, you would almost always inject any dependencies as mock objects. Integration tests Integration tests will
about 3 years ago - No comments
Didn’t find much in the Java space for Tumblr, and I’m looking for a project, so I just got started. First check-in was done tonight: http://code.google.com/p/tumblrj/ Not much to look at right now, but it will come for sure. (New development is a bit slow because I just switched to Mac and the key mappings
about 3 years ago - No comments
The Hibernate documentation (3.2) for the session.get() and session.load() methods state: load Returns: the persistent instance or proxy get Returns: a persistent instance or nul Notice “or proxy” in the load documentation. This last part took me an hour to figure out while debugging an application. In my case, for whatever reason (which I haven’t
about 3 years ago - No comments
I just got hired by a company that’s into content. Specifically, they’re building a product/platform on top of JSR-170. Should be pretty exciting to learn the new domain … While I wait to start, I’m getting ready by reading up and trying out a few things so I can jump in right away. Initial setup