Computer Knowledge
Java Enterprise and Web Technologies
2,279 Questions
Java enterprise and web technologies questions focus on J2EE architecture, web services like SOAP, and servlet functionalities. These topics frequently appear in IT officer and specialist scale examinations. Regular practice ensures familiarity with enterprise application components.
HttpServlet methodsSOAP and web servicesEJB architecture rolesJ2EE componentsJSP servlet callingUDDI concepts
Java Enterprise and Web Technologies Questions
-
Coustom Rule Engine
-
Drools
-
OpenRules
-
JRuleEngine
B
Correct answer
Explanation
Drools is the J2EE rule engine component used in the QuoteIt project. Drools is a popular open-source business rule management system (BRMS) that integrates with Java/J2EE applications.
-
MVC
-
MVC2
-
both
-
none of them
A
Correct answer
Explanation
Struts framework implements the MVC (Model-View-Controller) design pattern. It separates the application logic into three interconnected components: Model (data), View (presentation), and Controller (logic). Option A correctly identifies this foundational architectural pattern that Struts is built upon.
-
The Server object
-
The Application object
-
The Request object
-
The Response object
A
Correct answer
Explanation
The ASP.NET Server object provides access to server-side methods and properties, including information about the web server. It can be used to execute server methods (like Server.MapPath() for file paths) and access server utilities. The Application object stores global application state, Request handles incoming HTTP data, and Response manages outgoing HTTP data - none provide direct web server information.
-
To store the global information and variable definitions for the application
-
Configures the time that the server-side codebehind module is called
-
To configure the web server
-
To configure the web browser
A
Correct answer
Explanation
Web.config is an XML-based configuration file for ASP.NET applications. It stores application-wide settings including connection strings, custom application variables, authentication rules, and compilation settings. It does NOT configure the web server (that's web.config for IIS or machine.config) or the web browser (browser settings are client-side). The answer correctly identifies its purpose for storing global application information.
-
To store the global information and variable definitions for the application
-
Configures the time that the server-side codebehind module is called
-
To configure the web server
-
To configure the web browser
A
Correct answer
Explanation
The Web.config file is the primary configuration file for ASP.NET applications, storing application-wide variables, database connection strings, and security settings.
-
The Server object
-
The Application object
-
The Request object
-
The Response object
A
Correct answer
Explanation
The Server object (HttpServerUtility) provides access to utility methods and properties on the server, such as machine name and request timeout information.
-
USE J2EE Architecture
-
Model-View-Controller
-
USE PHP and Javascript
-
ASP.NET Web application
B
Correct answer
Explanation
MVC (Model-View-Controller) is an architectural pattern that separates an application into three main components: Model (data), View (presentation), and Controller (logic). This separation allows each component to be developed, modified, and tested independently without affecting the others. J2EE, PHP/Javascript, and ASP.NET are technologies or platforms, not architectural patterns for separation of concerns.
-
Insertion pattern
-
Modifer Pattern
-
No Such operation can be done once the web request is submited
-
Intercepting Filter
-
None of the above
D
Correct answer
Explanation
The Intercepting Filter pattern (J2EE) allows pre-processing and post-processing of requests/ responses. Filters can modify, enhance, or add data to the request object before it reaches the target resource. Insertion and Modifer aren't standard patterns, and the claim that it's impossible is incorrect - filters exist specifically for this purpose.
-
USE J2EE Architecture
-
Model-View-Controller
-
USE PHP and Javascript
-
ASP.NET Web application
B
Correct answer
Explanation
The Model-View-Controller (MVC) architectural pattern separates an application into three interconnected components: Model (data), View (presentation), and Controller (logic). This separation allows each part to be modified independently without affecting the others, meeting the requirement for individual modifiability. J2EE, PHP/JS, and ASP.NET are technologies, not architectural patterns that guarantee this separation.
-
Http Session State Clustering
-
File Service Clustering
-
Time Service Clustering
-
Object Clustering
A,D
Correct answer
Explanation
WebLogic Server provides two primary cluster services: HTTP Session State Clustering (for maintaining session state across servers) and Object Clustering (for clustering RMI and EJB objects). These ensure high availability and failover capabilities. File Service and Time Service are not primary clustering services in WebLogic.
-
MDBs support concurrent processing for both Topics and Queues.
-
MDBs support concurrent processing for only Topics.
-
MDBs support concurrent processing for only Queues
-
MDBs support concurrent processing neither Topics nor Queues.
A
Correct answer
Explanation
WebLogic Server 6.0 MDBs support concurrent processing for both Topics (pub/sub messaging) and Queues (point-to-point messaging). Multiple MDB instances can process messages concurrently, improving throughput. This is a key advantage of MDBs for handling high-volume JMS traffic.
-
One J2EE specific deployment descriptor and one WebLogic specific deployment descriptors
-
One J2EE specific deployment descriptor and two WebLogic specific deployment descriptors
-
One J2EE specific deployment descriptor only
-
One WebLogic specific deployment descriptor only
B
Correct answer
Explanation
A CMP (Container-Managed Persistence) entity bean on WebLogic requires one J2EE standard deployment descriptor (ejb-jar.xml) and TWO WebLogic-specific descriptors (weblogic-ejb-jar.xml and weblogic-cmp-jar.xml). The weblogic-cmp-jar.xml specifically defines CMP mapping and is required in addition to the standard descriptors.
-
Weight-based
-
Random
-
Round-robin
-
None of the above
C
Correct answer
Explanation
WebLogic Server uses round-robin as the default load balancing algorithm for clustered object stubs when no algorithm is specified. Round-robin distributes requests sequentially across available server instances, providing even load distribution. Weight-based and Random are alternative algorithms that must be explicitly configured.
-
The amount of time that WebLogic Server waits between receiving chunks of data in an HTTP POST.
-
The total amount of time that WebLogic Server spends receiving HTTP POST data.
-
The time spent by WebLogic server to post data to other servers in the cluster.
-
The number of bytes of data received in a POST from a single request.
B
Correct answer
Explanation
MaxPostTimeSecs defines the total maximum time WebLogic Server will spend receiving HTTP POST data from a client. It is not the time between chunks, nor the time posting to other servers, nor a byte count.
-
home
-
Handle
-
homeHandle
-
EJBhomeHandle
C
Correct answer
Explanation
In EJB, the homeHandle object is specifically designed to be serialized and later used to obtain a reference to the EJBHome object. The home interface itself cannot be serialized directly. Handle is for EJBObjects, not EJBHome.