• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shania nagapaga
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
 
Luciano Queiroz
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?
 
julita das
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 ?
 
Tony Chen
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic