Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in question

 
Divya Gehlot
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Source of question:www.xyzws.com
Problem
What are the J2EE components defined in J2EE specification?
Options
Select 1 correct option.

1. Servlet, JSP pages

2. Applet

3. EJB

4. 1 and 3

5. 1 and 2 and 3

Can any clarify me why the answer of above question is 5.
As far I know applet is not a part of J2EE specification.
Thanks in advance.
 
bird cao
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
j2ee-1_4-fr-spec.pdf page 6 tell you about application componnent
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet container is part of the J2EE-spec as explained in the following link

A J2EE Introduction - The Askesis J2EE "Hello world!" Tutorials
 
Divya Gehlot
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I googled and got the answer in SUN website itself that Applets are not one of the J2EE components of J2EE specification

Static HTML pages and applets are bundled with web components during application assembly but are not considered web components by the J2EE specification. Server-side utility classes can also be bundled with web components and, like HTML pages, are not considered web components.

source: J2EE Component Clarification
[ April 08, 2008: Message edited by: Divya Gehlot ]
 
Sumeet Raheja
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets are part of J2EE components . Java Spec it clearly states

J2EE Components

J2EE applications are made up of components. A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and that communicates with other components. The J2EE specification defines the following J2EE components:

* Application clients and applets are components that run on the client.
* Java Servlet and JavaServer PagesTrademarked (JSPTrademarked) technology components are web components that run on the server.
* Enterprise JavaBeansTrademarked (EJBTrademarked) components (enterprise beans) are business components that run on the server.

J2EE components are written in the Java programming language and are compiled in the same way as any program in the language. The difference between J2EE components and "standard" Java classes is that J2EE components are assembled into a J2EE application, are verified to be well formed and in compliance with the J2EE specification, and are deployed to production, where they are run and managed by the J2EE server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic