Ticketing management / support desk management with struts, spring and hibernate

Here are the screenshots I promised in my earlier post.


Report of the tickets-more filters to be added


Details of a ticket and the provision to add the follow-ups if any.


Historic report of the followups for the selected ticket.


Screen to add a ticket

Delivery 1 is completed yesterday. Lets wait for next release for more features.. Stat tuned!

Posted from WordPress for Android

Ticketing management on SDLC with struts, spring and hibernate

Here are tge screenshots I promised in my earlier post.


Report of the tickets-more filters to be added


Details of a ticket and the provision to add the follow-ups if any.


Historic report of the followups for the selected ticket.


Screen to add a ticket

Delivery 1 is completes yesterday. Lets wait for next release for more features.. Stat tuned!

Posted from WordPress for Android

Monitoring JEE applications

Development of Java enterprise applications had evolved over a period of time, We can say we are in a legacy period now with the help of modern frameworks and packages. I could see lot of developers start talking about Grails, many of them started learning Groovy scripting. It is amazing to feel we can make a Java enterprise web application with all modern libraries and UI frameworks integrated in just 10 minutes!!! Thanks to Grails. Application become less error-prone and development becomes an enjoyable one with the modern frame works. Lazy developers like me are so happy to know he is not going to write javascript for UI, SQL queries for backend access. While we giving importance to rapid component development and integrations, these libraries become inevitable.

On the otherside, one should worry about performance. It is painful to think about the CPU consumption of the browser while loading packed AJAX libraries, the number of SQL queries being fired to complete a simple task, the number of connections opened/closed to execute those queries, the load applied on JVM in terms of high CPU consuming threads or concurrent processing without threads getting blocked. When multiple tiers involved, debugging becomes a pain. While we don’t have sufficient time for development, we can’t afford for the resources to spend much time debugging each and every tier. A simple slow down at my DB backend, slows down my enterprise application. But my developer finds it after 5 working days because, he already spend one day each for user interface, Spring beans, ORM integraton and finally Hibernate tiers!! Monitoring them as silos din’t work out. All our admins tries to prove their box is doing good! It is worth to search for a tool which can monitor all of them as a service.

Here is a case study.
We take a simple web application running in Tomcat 6.
It uses Struts 2 for View, Spring 3.1 for Model, Hibernate 3 for Spring ORM with MySQL backend. We run one Apache web server where Phpmyadmin is running for the same database using by java application.

The application was running without any issue in the beginning. We used to upgrade it as we add new modules. Recently we found the application is not responding for logins. We could see the when we try login, the request is on progress for ever. We could see ‘Waiting for…’ without time-out! As any critical issue, this one also din’t have any trace in application process log, tomcat log. It happens sometimes 🙂 Without waiting for me, the server dies in another 3 or 4 hours!

A good idea is post it in the forums, But where? Java? Struts? Spring? Hibernate? Mysql? I have no trace with me! As a lonely programmer, I need to find out where I shoud start now. I added all the components in my monitoring solution and restarted Tomcat. I got the results when the problem occured again.  All the requests are pending in ‘user login’ block. I have an audit code, which will write success & failure login attempts to database, It is waiting for SQL connection for hours!! All the login requests are pending as ‘Waiting’ threads.

See the graph given for two days. You could see the blocked thread count increased from 10 to 212 on periodic intervals.

  • Red dots indicates the time at which the application stops responding to the users.
  • Yellow dots represent the appliation crash time.
  • The sudden drop shows the manual restart of the application.

Very many threads are in blocking state with the following trace.

Stack Trace     :
java.lang.Object.wait(Native Method)
$Proxy17.add(Unknown Source)
java.lang.Thread.run(Unknown Source)

Now we got a handle from which we need to start.

I got an immediate reply from spring community – it is connection pool

  • Transactions are not implemented properly. Since DataSource is directly injected, spring dint care about releasing the connections.
  • Need to make all my service methods @transactional, DB retrievals made as read-only in addition to few other changes to DAO configuration which I preferred.
  • I was checking the connections consumed or the session details at MySQL, I dont see any abnormalities.
  • The fault was with my blind guessing about default active/maximum connections of commons-dbcp. I thought default connections will be sufficient for me. But I found I din’t give the minimum, maximum and active SQL connection count where default values 8 connections. But I need 5 ~ 12 connections

Hence this solves the issue. The abstractions of the frameworks reduce the time being spent in development. At the same time, We need to be in a position to analyse the different tiers integrated together.

Representing ThreadDump details is basic thing with java monitor, but representing the details so that it can reduce our diagnosing time is highly important. Monitoring JTA becomes a valuable point in any java monitoring product. Still searching for better way of monitoring Struts/Spring/Hibernate layers individually. Hope we will get it soon!

jEDP – a simple WAR file with Spring 3, Hibernate 3, Struts 2 integration

This is the first reply I got it from one of my ex-colleague

this is what i want anna

When a newbie starts to learn popular frameworks, it is very natural to integrate them for ease of use and better maintenance. Else, we can choose the best of what we want. They may not be in a position to learn Grails immediately, which starts separate learning curve for him/her. So I have released a SIMPLE war file under GPL today which consists of

  • Struts 2 – for view layer
  • Spring 3 – for Business Logic
  • Hibernate 3 – for Spring ORM

I am sure, it will reduce the time taken for integrating the solutions. I am damn sure it will work, because, I have developed an in-house CRM tool for my Organization by EXTENDing this!

jEDPHere is the project home page


I prefer Kenai for better documentation and issue tracking. So, Documentations are placed in Kenai Wiki


Good Luck

JAMwiki implementation

I was searching for a wiki package for my company. The purpose is to bring all the information under a structured-one single-place. My selections were only two.
1. Trac – Python based
2. Media Wiki – PHP based
Unfortunately I have been given a Windows 2008 server, where Trac failed because of Python Crash. I have no time to debug it because, this is not my main stream of work. Media wiki is Good, I had previous implementations. I was thinking about some Java based wiki tools, The selection creteria is very simple – it should be like Media Wiki, the implementation should be very simple. No installshields etc!

Among the several packages listed in java-source, I have selected the JAMwiki.
Installation is a matter of importing the war, creating the database (which is not mandatory, jamwiki comes with internal HSQL DB).

Good One!

First Experience with Ubuntu

ubuntu sweetheart

This is an interesting success story. I have been given a vaio with 2GB ram/Core2Duo 2.1GHz with Vista Business. After the installations of basic dev&doc tools like eclipse, tomcat, mysql, openoffice, box became very slower. Build and deployment are done in snail’s pace 😦

Very bad, I just tried Ubuntu 9.1 Live CD couple of days ago. Basically I love Mandrake because of their superb control panel, user friendly installation. Once I tried Debian surge, came back to Mandrake again because I am not successful with the configuration of all devices. But this time it is a huge success.

Installation : Very quick (obviously, it is a live CD)

Partitioning : It is good, But I still love Mandriva in this

The system was up and running in just 20 to 25 minutes!! woww!

Display & UI : Good, I like minimal transition effects – they are fast and professional! (wipe in/out , zoom in)

Package management : Synaptic. Good. But I still love Mandriva

Devices :
I dont have much. Finger pad is working like a feather. Tried to install BSNL EVDO (ZTE), Tata Indicom Photon Plus (Huawei). Ubuntu has device drivers and finds it quickly. (Beware!!! I read in forums, Tata distribute two kind of USB modems one of them dont support Linux)

Network :

Tested Wired LAN,  Wireless LAN and mobile broadband – Good. Tested Remote desktop to connect to remote Windows box – Good. Skype Audio Chat – Good.

Dev tools:

Eclipse, Mysql, Tomcat, Openoffice, firefox all are running without any freezing moment. (not at all possible with my previous Win installation)

So, The journey starts!

A professional accountant called GNUCASH – success story


I am writing this post on a beautiful Sunday evening. I am trying to deploy an account software to maintain my own personal accounts. As a funny attempt, I tried to start writing my own code, out of laziness and lack of time I left it in halfway and searched for a simple software in sourceforge ; I came across some softwares. Most of them don’t have enough documentation, I have to pull my hair even to install it. Suddenly gnu-cash came to my mind. GnuCash, is a successful GNU software (Indian Linux enthusiasts say it is a replacement for Tally!). Amazing, they have a build for windows too.

It supports many important features, Budget, Vouchers, Bills, facility to maintain bank accounts etc etc. Here are some screenshots.

1. Account summary page

Gnucash account summary

2. Imbalance report

Gnucash imbalance report

3. General Ledger

4. Balance Sheet

Gnucash balance sheet

5. Reports – Expense analysis

Gnucash Expense analysis

You have full freedom to use/modify this software. Most of the linux distributions have this software, they have a build for windows also. A layperson like me is able to setup my own account at no time.

Then why dont you try it?