Switching Application Required System Properties According to Deployment Environment

Any serious application depends on a number of configuration properties, such as JDBC connection properties, caching properties etc. They should change according to target deployment environment. People employ different methods to take those properties outside their web applications. Among them, one commonly used method is to create a properties file and collect any property, whose […]

Read More →
Managing Dependencies With Ant

Every non-trivial java application have many dependencies on other resources, especially jar files. We have to keep track of which jars we are making use of, and their versions as the project develops. Systems may have several releases during their development life cycle, and among those releases, dependency lists may change, new jars may be […]

Read More →
Mocking ResourceBundle

If you want to unit test a method that depends java.util.ResourceBundle, and want to isolate bundle access code with mocking ResourceBundle, using for example, JMock Dynamic Mocking Library, you will face with a restriction, that commonly used methods, such as getString(key) are defined as final in ResourceBundle class. There is no way to extend and […]

Read More →
Enabling Acegi (1)

We have decided to use Acegi Security Framework in order to implement security requirements in our web based project, but might possibly have diverse security requirements, in addition to form based authentication and role based authorization, such as remoting support, domain object security, run-as capability, SSO, after invocation security, certificate based authentication which is integrated […]

Read More →
Cactus XOR Mocks or Cactus AND Mocks?

We employ both Spring and Hibernate to implement business and data access layers in our current project. We aim to bring clear separation between those two layers. Our beans in business layer act as service entry points.They realize simply our use case scenarios. They are also good candidates as start and end points for business […]

Read More →