This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integrating JMS with Struts in a web application

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

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.

Tx.

Naseem Khan
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic