External Per-Context Variables in Tomcat
June 23rd, 2010
Configuring variables outside of a WAR file for use with each instance deployed.
Configuring variables outside of a WAR file for use with each instance deployed.
I am sure that you have heard the often quoted “great developers are 10 times more productive than average developers”. As a consultant, I have seen this in practice many times, over the course of many projects at many clients. I am sure that you…
Suppress cant find JAR warnings generated by javac when running in Ant.
More and more organizations are relying on open source software to build, test, deploy, and run mission critical IT applications. From small start-ups to Fortune 500 companies, organizations worldwide are continuing to find open source as a cost effective means to deliver quality business applications. With a wealth of commercial and open source software options widely available, how does an organization know if an open source product is right for them?
How to interpret and use the test results for Canoo Webtest, particularly when tests dont pass or you dont even get the report screen.
For those with Spring projects already in progress, as well as those starting new projects, a number of new features are available, and some changes must be made to take advantage of them.
Overview It is commonplace in enterprise applications to allow application properties to be loaded from configuration files. When leveraging Spring, this is typically achieved using a PropertyPlaceholderConfigurer instance within the application…
Apache Camel’s SEDA (Staged Event-Driven Architecture) endpoints (http://camel.apache.org/seda.html) provide a useful and quick mechanism to implement asynchronous, event-driven processing within your applications. See http://www.eecs.harvard.edu/~mdw/proj/seda/ for the original description of the SEDA architecture. For those not very familiar with Camel, implementing a SEDA route can be as simple as adding the following to a route builder class:
A brief explanation of the Groovy spaceship operator, its usage, and the advantages of using it.
Using immutable data structures to minimize complexity and risk in concurrent applications.
Using both JPA and JAXB annotations on the same member of an object can cause runtime errors if not done correctly. Heres how to do it.
Agile projects have been around for years now, but for companies that are still new to the concepts and process, some simple pitfalls can delay your project. I have seen projects at companies that have run into challenges so here are some ideas for successful starts and pitfalls to avoid.
A step-by-step approach to get Hudson Continuous Integration working behind an Apache web server, building an Ant project fetched from Subversion.
As consultants we often find ourselves in a new office several times a year and it is up to us to carry our green habits with us as we go. Programs offered at offices are most often by, for, and about employees leaving consultants and contractors out of the loop on available facilities and programs. With this just being the way of things, here are nine simple, portable things we can do to perpetuate a green lifestyle wherever we find ourselves working on a given day.
Bizarre JavaScript errors surfaced after upgrading Spring and Spring MVC. Heres what we found.
Tis’ the season for predictions into 2010. After researching data from various sources, and talking with many colleagues over the past year and into 2010, I’ve put my finger on a handful of things that popped out at me. None of these predictions are groundbreaking, they’re fairly common sense. But, I think they’re important to keep an eye on, and with the media and government telling us that the recession is over, we shouldn’t become complacent in preparing for the upcoming year.
Exactly how is your development environment configured? I solved this problem with a simple script...
Really fast and easy to try different versions of things that are wired into the command line path. For example, switching grails versions is as simple as...
At my current client, we are writing an application that is deployed as an ear into Websphere. One of the goals of the project is to write out-of-container tests so that we dont have to build and deploy over and over again. Two of the tools we are using in this application is JPA for the ORM and Spring. Initially, we had two persistance.xml files, one for production and one for testing. Some of the differences were that the production version used a transaction type of JTA and the test version used resource local. There were a few other property differences, but otherwise they needed to be identical. At first this was ok, but as our list of classes and properties grew it became a maintenance hassle.
A good mocking framework is a must have in any Java developers toolset. Mocking frameworks greatly reduce the amount of code needed to effectively mock dependent interfaces and/or classes. Over the past several years EasyMock has been my mocking…
Moving to Mac OS X as a development environment and some issues or differences discovered.
Keyword expansion is not the default for files added to an SVN repository. And it’s done on a per file basis (with CVS we could configure an entire repository to turn on keyword expansion — .) Some svn tools and plugins allow for defaulting…
Here is a good example code for twitter like load more button in both jQuery and MooTools: http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/ I’ve tried MooTools version and worked fairly well (For IE, you need…
In my previous three posts, I described my experience with maintenance, refactoring, and installation on a large project that used both Java and Groovy. In this post, I will discuss the “support nightmare” raised by Bill Burke in his blog post…
Perhaps Minnesota politician Al Franken’s character on Saturday Night Live said it best when Stuart Smalley declared “I’m good enough, I’m smart enough, and doggone it, people like me!” A good consultant is not just measured by their productivity…