by Petri Kainulainen on September 16, 2011
A common method of setting transaction boundaries in Spring Framework is to use its annotation driven transaction management and annotate service methods with @Transactional annotation. Seems pretty simple, right? Yes and no. Even though the annotation driven transaction management of Spring Framework is easy to setup and use, there are a few things which you [...]
Read the full article...
by Petri Kainulainen on September 11, 2011
Apache Wicket is a component based web application framework which offers good unit testing capabilities. This blog entry describes how you can use those capabilities to mock beans which are injected by using the Spring integration of Apache Wicket (Note: The precondition of this blog entry is that you are using Apache Wicket 1.5). The [...]
Read the full article...
by Petri Kainulainen on April 27, 2011
One of the fundamental requirements of a build process is that it must be possible to use different configuration for binaries, which are used in different environments. If you are using Maven, it is possible to fulfill this requirement by using build profiles. This is blog entry is written to demonstrate how build profiles can [...]
Read the full article...
by Petri Kainulainen on April 9, 2011
A few days ago I was looking for a way to create a runnable binary distribution of a standalone Java application by using Maven. Of course I could have used the jar-with-dependencies assembly descriptor of the Maven Assembly Plugin , which packages the binary output of my project and its unpacked dependencies inside the same [...]
Read the full article...
by Petri Kainulainen on March 26, 2011
The third part of my Wicket HTTPS tutorial describes how you can submit a form by using HTTPS protocol when the form is added to a non secure page (served over HTTP). This is a somewhat common use case in web applications even though it violates the fundamental principle of HTTPS protocol (trust). Thus, I [...]
Read the full article...