Solved

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

Posted on 2013-06-06
5
528 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet requestdispatcher include and forward differences 1 31
MySQL  on Tomcat 8 46
Why my table column Id is not passed to java object? 4 39
String array comparison 4 34
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

777 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