Solved

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

Posted on 2013-06-06
5
529 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
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

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

Assisted Solution

by:CEHJ
CEHJ earned 150 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 60
java stored proc example 9 44
eclipse buid path vs tomcat lib path 10 34
Java syntax, or is it Selenium 6 30
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

809 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