Posts

Showing posts from April, 2010

Forbidden technique: Multi-threading inside J2EE server

It is an old post based on old idea, it is not relevant anymore.   It was in 2009, I just wrote a multi-threaded code to fetch data from two DB2 servers. They are both physically separated. My intension was to get multiple data simultaneously, so JavaBeans will work quickly. I uploaded my multi-threaded J2EE application in the production server, after one or two months later the whole production server was terribly slowed down. I thought there is memory leak problem inside the server. However, I also checked which application is taking two much CPU and memory. I found that my implemented multi-threaded application consuming vast amount of computing resources. I was surprised and I researched on the multi-threading in J2EE. I found from several tech-forums that multi-threading inside J2EE server is forbidden technique. Hmmmm, WHY?   To understand why J2EE does not support multi-threading [7], we need to understand fundamental theory of J2EE server at first. J2EE server is not single c

J2EE best practice

I found an interesting article about J2EE best practice. I think, it might help any J2EE developer: http://www.ibm.com/developerworks/websphere/techjournal/0405_brown/0405_brown.html