nerdexam
Oracle

1Z0-599 · Question #6

Which two elements of the Java Enterprise Application Archive are required?

The correct answer is B. Deployment Descriptor C. METAINF sub directory. An EAR file, like all Java archive formats, requires a META-INF subdirectory (C) to hold its metadata, and inside it must contain the application.xml deployment descriptor (B), which tells the application server what modules the EAR contains and how to deploy them - without it…

Deploying Applications

Question

Which two elements of the Java Enterprise Application Archive are required?

Options

  • AEJB Archive
  • BDeployment Descriptor
  • CMETAINF sub directory
  • DResource Adapter archive
  • EJava library

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    89% (40)
  • D
    2% (1)
  • E
    2% (1)

Explanation

An EAR file, like all Java archive formats, requires a META-INF subdirectory (C) to hold its metadata, and inside it must contain the application.xml deployment descriptor (B), which tells the application server what modules the EAR contains and how to deploy them - without it, the server cannot interpret the archive's structure.

Why the distractors are wrong:

  • A (EJB Archive) and D (Resource Adapter Archive) are both optional module types that can be packaged inside an EAR, but neither is mandatory - a valid EAR could contain only WARs, for example.
  • E (Java library) - shared library JARs may be included in the EAR's lib/ directory, but this is entirely optional.

Memory tip: Think "META-INF is the skeleton, application.xml is the brain." Every standard Java archive (JAR, WAR, EAR) requires a META-INF directory, and the EAR's unique addition is the application.xml inside it - if there's no descriptor, the server doesn't know what it's deploying.

Topics

#EAR Structure#Deployment Descriptor#META-INF#Java EE Packaging

Community Discussion

No community discussion yet for this question.

Full 1Z0-599 Practice