This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

IBM-483 related 1Q. where to put the jar file ?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q. There is a jar file available which is be shared among multiple enterprice applications.
What is the best way to handle this ?
1. put the jar file in all enterprice
applications lib dir
2. make a ear file and set the classpath to the
jar file in the MANIFEST file
3. put it in application server classpath
4. put it in System class path
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would answer:

3. put it in application server classpath
Is this a kind of question of the real exam?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes ! exactly this kind of qns they ask.
But I think 1 st or 2nd will be correct answer.
is there anything like application server classpath in any app servers ?
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Shania nagapaga:

3. put it in application server classpath


To be WebSphere specific, you should put all the common/utility jar files into
<WAS_HOME>/lib/app


http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/060401.html
Application extensions (AEX)
Description: Classes and JAR files in the product_installation_root/lib/app
How to set and view contents: The location is fixed by the WebSphere Application Server runtime and cannot be configured. You can view the directory contents to see the contents of this classpath
Search order: The runtime classloader checks the AEX, then RCP -> RP -> RE.
Typical contents: Class libraries that need to be shared among all J2EE applications installed on the server. Because these classes are not visible to the WebSphere Application Server runtime classloaders (RPC, RP, and RE), this classpath can contain updated versions of common libraries (such as JAXP) that are present in the runtime.
Place dependent JAR files in this directory, too.
Another good example is a newer version of xerces.jar than the one shipped and used by WebSphere!!!
[ February 18, 2003: Message edited by: Tony Chen ]
 
julita das
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Tony Chen,
What meight the answer for the qn ?
So is it best to put them in lib dir ?

Originally posted by Tony Chen:

To be WebSphere specific, you should put all the common/utility jar files into
<WAS_HOME>/lib/app


http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/060401.html
Application extensions (AEX)
Description: Classes and JAR files in the product_installation_root/lib/app
How to set and view contents: The location is fixed by the WebSphere Application Server runtime and cannot be configured. You can view the directory contents to see the contents of this classpath
Search order: The runtime classloader checks the AEX, then RCP -> RP -> RE.
Typical contents: Class libraries that need to be shared among all J2EE applications installed on the server. Because these classes are not visible to the WebSphere Application Server runtime classloaders (RPC, RP, and RE), this classpath can contain updated versions of common libraries (such as JAXP) that are present in the runtime.
Place dependent JAR files in this directory, too.
Another good example is a newer version of xerces.jar than the one shipped and used by WebSphere!!!
[ February 18, 2003: Message edited by: Tony Chen ]

 
Tony Chen
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by julita das:
hi Tony Chen,
What meight the answer for the qn ?
So is it best to put them in lib dir ?


I would choose:
3. put it in application server classpath
The best way to put application common/util jars is <was_home>/lib/app
e.g.
<was_home>/lib/app/xerces.jar (version 2.3.0 for your applications)
<was_home>/lib/xerces.jar (old version shipped and used by websphere itself)
 
Have you no shame? Have you no decency? Have you no tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!