Meaningless Drivel is fun!*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark ".EAR files??" Watch ".EAR files??" New topic
Author

.EAR files??

Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
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
Poonam


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

Joined: Mar 24, 2008
Posts: 3775

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.


SCJP 5 | SCWCD 5
[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
SCJP
SCWCD
Milton Ochoa
Ranch Hand

Joined: Oct 23, 2007
Posts: 336

I agree with swati
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: 323
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: 3205
    
    2
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.

HTH,
Paul.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .EAR files??
 
Similar Threads
EAR Isolation in Jboss 4.0.2
Weblogic to Websphere Migration
local interface ?
EAR Isolation in Jboss 4.0.2
How to create patch for ear file deployed in JBOSS