File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Integrating JMS with Struts in a web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Integrating JMS with Struts in a web application" Watch "Integrating JMS with Struts in a web application" New topic

Integrating JMS with Struts in a web application

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809

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 Khan

Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33113

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
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
I agree. Here's the link:
subject: Integrating JMS with Struts in a web application
It's not a secret anymore!