• Post Reply Bookmark Topic Watch Topic
  • New Topic

EAR Directory Structure?

 
Sam Kumar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We are planning to install third party software which provides us API to detect browser setting. This software will run as part of our application.
According to their installtion instruction, they recommend to put various files under WEB-INF/classes directory but I am not sure whether that is a good way based on J2EE specification.
WEB-INF/classes/thirdparty.properties
WEB-INF/classes/thirdparty.bdf
WEB-INF/classes/thirdparty.dat
Another approach is to place all these lib into some directory (outside EAR) and modify the CLASSPATH.
Main advantage of first approach over the 2nd is that I do not have to change CLASSPATH, everything is inside the EAR file.
Any suggestion will be hightly appreciated!
Thanks.
SK
 
Greg Charles
Sheriff
Posts: 3010
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be a good idea to put classes in the WEB-INF/classes directory. (You are talking about wars here. Ears don't have a WEB-INF directory.) It's especially good for classes that are specific to one web app. If classes are common across many web apps, you might consider putting them in the app server's classpath. That can make development more difficult though, because in most cases, it means you can't hot deploy those classes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!