Michael Mainguy03/06/12
1980 views
1 replies
I tried to set up mongoid with a free mongohq account on Heroku. As always, there were issues to solve, such as finding compatible versions of mongoid and mongodb.
Rob Williams03/06/12
1225 views
0 replies
You can explain the concept of separation of concerns to a non-technical person in a few minutes. Actually, while almost no one would argue with the importance of SoC, there are a lot of different ways to deal with it. The Single Responsibility Principle , which is attributed to Uncle Bob, is one way. Frankly, this sounds like Meyer‘s notion of components only advancing a single interface constrained as much as possible.
Brian Oneill03/05/12
1414 views
1 replies
Our project uses AOP, with load-time weaving where the byte code of the classes is changed at runtime. When we wanted to run code coverage on the project, we ended up with exceptions from AspectJ. Here's how we dealt with the conflict.
Dustin Marx03/05/12
6912 views
0 replies
A recent reddit Java thread is titled "Share a useful class from the standard Java Class Library!" and starts with the comment, "There are so many available classes and sometimes ones exist that you don't realize. Share one that you use that the rest of us may not be aware of!" In this post, I look at some of the (mostly JDK) classes mentioned in the forty (at time of this writing) responses to this request.
Roger Hughes03/05/12
2515 views
2 replies
My last blog explained the relationships between Mavan life-cycles, build phases and goals from a height of about 3 miles. In explaining Maven’s goals I mentioned the tomcat:redeploy goal without really defining where it came from. Well, the answer is that the tomcat:redeploy goal isn’t a default goal or part of the default Maven installation, it’s part of the tomcat-maven-plugin. This plugin comes with several useful goals that allow you to manipulate Tomcat as part of your build process - the big idea here is that Tomcat can automatically become part of your extended build process.
Nicolas Frankel03/05/12
3511 views
4 replies
In previous posts, I tackled some misconceptions about Hibernate: there are plenty of developers using Hibernate (myself including) that do not use it correctly, sometimes from a lack of knowledge. The same can be said about many complex products, but I was dumbfounded this week when I was faced with such a thing in the Spring framework. Surely, something as pragmatic as Spring couldn’t have shadowy areas in some corner of its API.
Gabriel Jeremia...03/05/12
1007 views
0 replies
It's possible to catch exceptions from your BPELs in WebSphere Integration Developer. But what happens when we want to catch an exception that is not necessarily a fault and could stem from the underlying system or the application behind the invoke?
Peter Lawrey03/04/12
1538 views
1 replies
When performing benchmarks I usually reach for the fastest machine I can. The theory is that if speed matters you will use a fast machine.
Recently I have tried benchmarking the slowest machine I have access to.
Roger Hughes03/04/12
2653 views
0 replies
One of the things that we do on a daily basis is use Maven to build our projects by issuing build commands such as mvn install. Maven then looks at our project’s configuration file, affectionately known as a POM, magically figures out what do and, hey presto, your build is complete. I imagine that we do this so often that we never think about what’s going on behind the scenes, and in some cases without ever understanding what’s going on either. This blog takes a bird’s eye look at the Maven build lifecycle and reveals what happens when you issue commands such as mvn clean install.
Michael Mainguy03/03/12
3090 views
0 replies
Of the folks I know, the good/great programmers are all pretty aggressive. In addition they are also pretty controlling. As a person who historically fit in to that personality type, I wonder why this is. It seems to me that the reason has to do with the way people interact with computers when programming
Constantin Alin03/03/12
2168 views
2 replies
You may have found situations where you want to add more than one element with the same key in a Java collection. The MultiValueMap class from Apache Commons allows you to do just that.
Craig Flichel03/02/12
2366 views
1 replies
In Java, java.io.File is one of the more frequently used low-level API objects. It also happens to be lacking in some basic functionality that we’ve all needed at some point, doesn’t provide different representations/API for files and directories and doesn’t throw fine-grained exceptions to differentiate between different types of error conditions (i.e., file already exists, directory not empty, invalid path, etc.)
Howard Lewis Ship03/02/12
1534 views
0 replies
Plastic is Tapestry's built-in Aspect Oriented Programming library, which primarily operates at the byte code level, but shields you from most byte code level thinking: normally, your code is implemented in terms of having method invocations or field reads and writes passed to callback objects that act as delegates or filters.
Constantin Alin03/02/12
1872 views
3 replies
There are a few ways to create a fixed size list in Java - here we will look at using the FixedSizeList class from Apache Commons. Because you can't change the size of the list, some familiar methods from other collections are not available.