Spring Security Framework exists in my enterprise application development tool suite for ages. Over years it has evolved a lot and become a much more reusable and extendable framework for various security needs. Recently, one of my clients came up with an interesting requirement. They are developing a mobile client for their enterprise web application, […]
Category: English
A Criteria Builder Idiom for Hibernate Queries
This simple idiom continuingly appears in our search/find use cases, and several other ones, which have parts, in which we find some data to act on it, according to some specific condition. In search/find use cases, users enter some data pattern, select some options, enter date ranges to narrow or broaden the result of those […]
Running Jetty Embedded Continued
For some time ago, i had mentioned about running jetty embedded. This time while I am still running it embedded, I need to set “WebContent” path from inside classpath of the application. It will reside next to my test class. As I don’t want to couple my test case with the absolute path of the […]
First Impression Is Really Important
I have attended a 3 day workshop for Oracle Coherence Product. Altough I am a veteran Eclipse user, we used JDeveloper 11g Technology Preview 3 during our lab sessions. During those lab sessions, I noticed an ugly thing related with JDeveloper. JDeveloper provides some IDE mechanism to generate equals and hashCode methods for your classes. […]
Client JVM Odd Behavior
Last week, a collegue of mine came and showed an odd behavior of JRE. It applies to both JRE 1.5.0_14 and 1.6.0_02. Here is the test code: If we run above test code in client JVM, then we get output as follows: Elapsed Time: 2219Elapsed Time: 1109 When we comment out the line 15, new […]
Spring Way of Implementing Abstract Factory Pattern
In my current work, I am responsible for developing a platform to ease web application development using several JEE technologies such as JSF, SWF, Spring, and JPA/Hibernate or Toplink. One main consideration of our management is to keep platform as flexible as possible in terms of which ORM tool is used. Every web application that […]
Approaches to Integrate Web and Swing Applications
It was about 8 or 9 years ago when many enterprise applications were being developed using Swing for their presentation layer, and web start was the common tool to distribute and run those applications from a central location. Among the reasons for preferring Swing as UI technology, rich and complex UI requirements were the most […]
Clean Up Your ThreadLocals
Forgetting to clean up ThreadLocal variables might really hurt you. Let’s see how. I have several integration tests with Spring WebFlow and JSF and in one of them I have an setUp method like that: @Before public void setUp() { RequestContextHolder.setRequestContext(new MockRequestContext()); } I just create a MockRequestContext and put it into RequestContextHolder so […]
How to Detect JDBC Connection Leakages with C3P0
First of all I must say that, the whole credit for discovering this feature goes to my collegue İlker Çelik. In a big codebase with lots of 3rd party libraries and frameworks interacting with JDBC connections it might be difficult to trap JDBC connection leakages, that is open connections left in application. C3P0 connection pool […]
Running Eclipse Ganymede in Ubuntu Karmic Koala
I wouldn’t guess it would be that hard to install Eclipse 3.4.2 ganymede in ubuntu 9.10 karmic koala. After searching a bit around web I concluded that it was not the way to go with sudo apt-get install eclipse this time. Then I downloaded 3.4.2 from eclipse site, extracted it and started playing with it. […]