• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the use of META-INF/MANIFEST.MF in the servlet based application  RSS feed

 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
In the client server application in j2ee,when we create a war file in our application why we used META-INF/MANIFEST.MF file.

Could you please explain me why it is used( META-INF/MANIFEST.MF) in the war file?

Best Regards
Sumanta Panda
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the environment you deploy your WAR file in. For example if your WAR is part of an EAR and you deploy this on WebSphere the manifest defines which of the shared libraries at the root of the EAR file the WAR needs . Not all application servers will use it this way, and no Servlet containers should need to use it since all web application classes should be in appropriate directories in WEB-INF.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://en.wikipedia.org/wiki/Manifest_file
The same applies on WAR files.
 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Paul Sturrock Sir/Bauke Scholtz sir,
Thanks both of your response.

Sir,
In the Head First Servlet & Jsp book it is mentioned that "META-INF/MANIFEST.MF which gives you a deploy - time check for whether the container can find the packages and classes your app depends on".

Could you please explain me the above point meaning?

Thanks in advance.

Regards
Sumanta Panda
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!