Welcome

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. […]

JSF Required Validation Still Giving Headaches…

For some time ago, we had decided not to use JSF’s required attribute and instead handle required validation with a validator object implementing Validator interface, attached to current UIInput component. By that way, we were able to develop validation bypass mechanism while being able to update model, and group validation capability which let us to […]

Some Notes About Various Certificate Operations Using OpenSSL

Our system support group delivered a signed certificate to be used in Apache SSL configuration. Its extension was *.pfx, which meant its contents were in PKCS12 format, and was containing both certificate and its private key in it. I needed to convert it into PEM format and to separate certificate from its private key. The […]

Enabling SSL on Apache HTTP Server

After opening our JIRA to outside world via Apache HTTP Server, the next obvious thing was securing communication between users and the web server. Enabling SSL on Apache HTTP Server is really easy. The key ingredients of securing Apache are mod_ssl and OpenSSL. It is possible to download Apache distribution including mod_ssl and openssl runtime. […]

Proxying Tomcat with Apache HTTP Server

There is a bunch of step by step tutorials and good references about putting Apache in front of Tomcat around net. Nevertheless, I wrote this article, mainly for myself, in case I come up with same requirement in sometime later. First, let me give a little background information about problem. We have served JIRA through […]

How to create a custom FacesContext

Although I am not happy with several issues in JSF spec, I like its customizability. A couple of days ago, I needed to introduce Mediator pattern in my case studies. FacesContext instance seemed to be a good candidate as Mediator object. You need to execute three easy steps to introduce custom FacesContext implementation into your […]