• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IBM 484: Common utility classes used by different apps

 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a question in the trial whizlabs J2EE 484 simulator which I would like to discuss it here.
Moderator(s): In case there are any copyright issues, please feel free to delete this post.
Q6. You have many enterprise applications that share some utility classes packed in a JAR file.Which of the following would be the best way to place the JAR file?
1. Place it in the system classpath
2. Place it in the WEB-INF/lib folder of each application.
3. Add it to each ear file and reference it in the manifest classpaths of the modules using it.
4. Specify it in the classpath element of the application.xml file
Answer: 3
I didn't read the J2EE specs but isn't option 1 the more common practice?...
The explanation says that option 1 is also correct but it requires a reboot of the server,hence it is not preferred.
[ May 06, 2004: Message edited by: Vishwa Kumba ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic