Sir I m working on one health site project where i hav to use JMS. The architecture of the project is:
JSP--Controller Servlet---DTO---DAO--Database Connection pool
For retriving the information from JSP i m using ActionForm object which is basically dto. Now is it possible to improve the performance of the project by JMS. Further if i want to make it more flexible will JMS be an option. If not plz suggest me some alternative.
Naseem, JMS is for asynchronous messages. It may have an effect on performance, but it would change the behavior of the app. In particular, you would need to have a "waiting" message displayed to the user and have the user query back often to see if the result is ready. Unless this is a requirement, I recommend not using JMS.
Instead, see if you have a performance issue and tune there. You could tune your query, use caching, etc.
As you are presumably already sending all the data necessary for DB operations in the DTO for each request, then any optimisation effort is most likely needed in the SQL or database (table design, indexes).
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
subject: Integrating JMS with Struts in a web application