File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes .EAR files?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark ".EAR files??" Watch ".EAR files??" New topic

.EAR files??

Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 324
hello ranchers,

refering to Enthuware mock , please consider the code below-

Which of the following files possibly contains a web application?

A. webmail.ear
B. webmail.war
C. webmail.jar
D. webmail.xml
E. webmail.xar

given answers A, C.
I have refered HFSJ but i wonder if there is something written about the .ear(Enterprise Archieve) files. Do we expect such questions on exam.

Please verify


Thanks <br />Poonam Agarwal SCWCD 86%
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

EAR (Enterprise ARchive) files can contain web components (WAR), EJBs (EJB-JAR), any other libraries (JAR) and application.xml (of course). It's a standard way of packaging enterprise applications for deployment.

[How to ask questions] [Twitter]
swati bannore
Ranch Hand

Joined: Oct 18, 2000
Posts: 201
shouldnt the answer be

A) webmail.ear and B) webmail.war

as jar file usually contains all the libs..

Swati Kale
Milton Ochoa
Ranch Hand

Joined: Oct 23, 2007
Posts: 336

I agree with swati
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

To answer the poster's question, I'd say that you don't need to know about EAR. Section 2 of the exam objectives is :

Section 2: The Structure and Deployment of Web Applications
* Construct the file and directory structure of a Web Application that may contain (a) static content, (b) JSP pages, (c) servlet classes, (d) the deployment descriptor, (e) tag libraries, (d) JAR files, and (e) Java class files; and describe how to protect resource files from HTTP access.
* Describe the purpose and semantics of the deployment descriptor.
* Construct the correct structure of the deployment descriptor.
* Explain the purpose of a WAR file and describe the contents of a WAR file, how one may be constructed.

I don't think you are supposed to know about EAR. (although it won't hurt to know about it ;) )

[My Blog]
All roads lead to JavaRanch
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 324
Thanks christophe
Sourin K. Sen
Ranch Hand

Joined: May 02, 2006
Posts: 86
swati bannore wrote:shouldnt the answer be

A) webmail.ear and B) webmail.war

as jar file usually contains all the libs..

Even I think that only ear and war can contain a complete web app. A jar is usually used to carry 3rd party library although i am not sure if it too can contain a complete web app.

Can someone highlight on this point a bit more ??

Regards,<br />Sourin.
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3635
The correct options as shown by the simulator are indeed A and B.
Reference to ear is for the sake of completion. No details of ear are asked in any question.


Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
I agree. Here's the link:
subject: .EAR files??
It's not a secret anymore!