aspose file tools*
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
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: 29241
    
139

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integrating JMS with Struts in a web application
 
Similar Threads
Designing DTO and ActionForm
ActionForm vs Transfer Object
issue in displaying the body content(fetched dynamically) of the h:dataTable
Struts1.2 & DTO & ActionForm
Complete J2ee Technical Flow