• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic