Exploded Vs Archive form of EAR file
Hi
I have 3 JSPs named one.jsp, two.jsp, three.jsp.
one.jsp includes two.jsp in 4 places.
two.jsp includes three.jsp in 3 places.
All the three jsps uses JSTL to load the values from sql server database.
When I load the one.jsp file from an Archived ear file, it is taking 7 to 10 seconds to load the file. But, When I try to load it from an exploded ear file, it is loading within a second.
What is the difference between loading the same file in exploded and archived forms?
what are the adavantages and disadvantages of Exploded Vs Archive form of an web application?
Please, help to know this information.
Thanks,
JavaBuddy.
> When I load the one.jsp file from an Archived ear
> file, it is taking 7 to 10 seconds to load the file.
> But, When I try to load it from an exploded ear file,
> it is loading within a second.
Could you clarify what do you mean by load the file? Do you mean redeploy the application?
And how did you deploy the web application? Through autodeploy, cli deploy or admin console, netbeans?
Do you have precompilejsp option set to same value for both archive and directory deployment (what you referred as the exploded)? This option is used to dermine whether we compile jsp files during deployment time or runtime when the jsp is invoked the first time..
>
> What is the difference between loading the same file
> in exploded and archived forms?
>
> what are the adavantages and disadvantages of
> Exploded Vs Archive form of an web application?
Directory deployment has less overhead than archive deployment (no need to explode the archive etc) so it's usually faster.
Directory deployment is targeting developers who need to change the contents of their application often and redeploy. It is faster and also developer doesn't need to repackage the archive each time after modifying the contents.
Directory deployment has some limitations: currently it is not supported on EE platform (cluster). If you don't need to use the cluster feature and always use the PE version, there should be no problem just always doing directory deployment.