Hi!
Madhurya Ranjan wrote:My only doubt is after calling system.exit(0), code written after web services will not be reachable.
Try the following program and see what output it generates:
If you do a System.exit(0) in an application server, you will shut down the entire server. That is definitely not good.
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 sounds a little strange to me, could you show an example?
JSP is presentation technology, meaning that it is to be used to render a webpage (in this case) that the user sees. It is not a good practice to perform business logic or, for instance, call web services, from a JSP.
What kind of connections are left open after having finished the transaction?
Best wishes!