wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

Integrating JMS with Struts in a web application

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
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


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

Joined: May 26, 2003
Posts: 30076
    
149

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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
 
Consider Paul's rocket mass heater.
 
subject: Integrating JMS with Struts in a web application
 
Similar Threads
issue in displaying the body content(fetched dynamically) of the h:dataTable
Complete J2ee Technical Flow
Designing DTO and ActionForm
Struts1.2 & DTO & ActionForm
ActionForm vs Transfer Object