?
Solved

Is it a good practice to place all static files out of a WAR/EAR file?

Posted on 2013-06-06
5
Medium Priority
?
533 Views
Last Modified: 2013-06-06
0
 
down vote
favorite  For all my business applications, I place my css files, images, javascript (jquery, plugins, functions JS files, etc.) within my project.

I am using jBoss as my application server, fronted by an Apache server and mod_jk (using the AJP protocol). By looking at the jBoss tomcat status page, I am seeing a lot of current threads on stuffs like JS files, css files, etc... So, my thought is that if these static files were hosted somewhere else, it would not have to be managed by jBoss, resulting in less work required by jBoss.

The reason why I am concerned by that is that my application has a lot of concurrent connections, and sometimes it hits the maximum number of current threads (250). Before adding new jBoss instances to the load balancing mechanism, I want to make sure my application is properly set up in its structure.

Am I wrong? What is the best practice for building web business application?

Thank you!
0
Comment
Question by:SolutionsTI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
Valeri earned 1400 total points
ID: 39225570
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 600 total points
ID: 39226490
Is it a good practice to place all static files out of a WAR/EAR file?
Simple answer is yes - that's what Apache is optimised for so they should be served by it where possible. It must be said though that unless the client is badly constructed, that type of content should be cached client-side anyway
0
 

Author Comment

by:SolutionsTI
ID: 39226499
Is there any efficient or standard way to "cache" these things on the client-side?

Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39226528
That, as i said, should really happen automatically. e.g. you should see that if you examine your browser cache
0
 

Author Comment

by:SolutionsTI
ID: 39226536
Okay, I thought you were recommending a third party caching way.

Thank you guys
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question