Thanks Bhagat/Ivan for your response. My only doubt is after calling system.exit(0), code written after web services will not be reachable.Please correct me .
I am calling the webservices running on webserver and caling it from a web application running on JBoss through a JSP and I have seen lots of open connection after finishing the transaction.This is increasing overhead and web services calling time.