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

Multiple choice technology platforms and products
  1. A single JMS store can support multiple JMS servers.

  2. Multiple consumers may consume from the same queue, but multiple producers may not send to the same queue.

  3. Multiple JMS Servers may exist on one WebLogic 6.0 server.

  4. A JMS Server can be deployed on only one server.

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Explanation

WebLogic allows multiple JMS servers on a single WebLogic server instance (C is true). A JMS server is deployed to and runs on exactly one WebLogic server (D is true). A JMS store typically backs one JMS server, not multiple (A is false). JMS queues support multiple producers AND multiple consumers (B is false).

Multiple choice technology platforms and products
  1. Servlets, JSPs, EJBs, RMI objects, and Java applications use the Java Authentication and Authorization Service to authenticate WebLogic Server.

  2. The default security realm in WebLogic Server is the File realm.

  3. The default authentication scheme for WebLogic Server is two-way authentication

  4. An Administration Server may contain configuration information for one WebLogic Server or a cluster of WebLogic servers

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

WebLogic Server uses one-way authentication as the default, not two-way. Two-way (mutual) authentication requires explicit SSL configuration where both client and server verify each other's identities. The other statements are true: JAAS is used for authentication, the default realm is File-based (in older versions), and Administration Server configures individual servers or clusters.

Multiple choice technology platforms and products
  1. JTA

  2. JNDI

  3. JMS

  4. JMX

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JNDI is used by EJB clients to locate resources, including obtaining a reference to the UserTransaction object under the standard path java:comp/UserTransaction in WebLogic.

Multiple choice technology programming languages
  1. jsp:forward

  2. jsp:getBean

  3. jsp:param

  4. jsp:getProperty

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The standard JSP actions for interacting with JavaBeans are jsp:useBean, jsp:setProperty, and jsp:getProperty. The action jsp:getBean is not defined in the JSP specifications, making it the correct choice for not being a valid JSP action in web applications.

Multiple choice technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Local rendering portlets display content retrieved from the same WebSphere Portal server instance where Web Content Management (WCM) is installed. This means the rendering happens locally on the same server, avoiding cross-server calls. Option B is incorrect because local rendering specifically refers to same-server content delivery.

Multiple choice technology architecture
  1. Observer

  2. Mediator

  3. Adapter

  4. Bridge

  5. Visitor

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Bridge pattern separates abstraction from implementation, allowing them to vary independently. JMS acts as a bridge between the Order Entry application and various subsystems by providing a messaging layer that decouples the producer from consumers. Observer is about one-to-many dependencies, Mediator centralizes communication, Adapter converts interfaces, and Visitor separates operations from object structure.

Multiple choice technology architecture
  1. Service Activator

  2. Data Access Object

  3. Domain Store

  4. Business Object

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Service Activator pattern enables asynchronous processing by receiving messages from JMS and invoking business services in a separate thread or process. It decouples message reception from business logic processing. DAO handles data access, Domain Store provides transparent persistence, and Business Object represents business entities.

Multiple choice technology architecture
  1. Service Locator

  2. Session Façade

  3. Application Service

  4. Business Delegate

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Session Facade simplifies client access to business tier components by providing a unified interface that aggregates multiple business objects. It eliminates the client's need to interact with multiple fine-grained business components directly. Service Locator finds and creates services, Application Service provides business logic, and Business Delegate reduces tier coupling.

Multiple choice technology architecture
  1. Web Service Broker

  2. Domain Store

  3. Data Access Object

  4. Service Activator

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Domain Store pattern provides transparent persistence for an object model by abstracting the mapping between objects and their persistent storage. It handles the complexity of saving, loading, and managing object state without exposing persistence details to business logic. Web Service Broker exposes business services as web services, DAO provides data access operations, and Service Activator enables async processing.

Multiple choice technology architecture
  1. do not want to use entity beans

  2. bridge the gap between business requirements and existing service capabilities

  3. application might be running in a web container

  4. conceptual model with sophisticated business logic, validation and business rules

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Web Service Broker pattern is applicable when you need to bridge the gap between business requirements and existing service capabilities, exposing business logic as web services. It facilitates service integration and reuse. Entity beans are a persistence concern, web container is a deployment environment, and sophisticated business logic describes domain complexity rather than service bridging.

Multiple choice technology web technology
  1. faces-config.xml

  2. web.xml

  3. ibm-web-ext.xmi

  4. ibm-web-bnd.xmi

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The faces-config.xml file is the standard configuration file in JSF applications where managed beans are registered and configured along with their properties, navigation rules, and other application-wide settings. web.xml is for general web application configuration, not JSF-specific managed bean registration.

Multiple choice technology web technology
  1. HTTP server

  2. Web server

  3. Application server

  4. A & C

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

WebLogic Server is an application server that runs Java EE applications. While it can serve web content and handle HTTP requests (which might make it seem like a web server), its primary purpose and classification is as an application server that provides enterprise services like transaction management, security, database connectivity, and messaging. A web server (like Apache HTTPD) only serves static content and doesn't provide these enterprise services.

Multiple choice technology web technology
  1. Only WAR files

  2. Only EAR files

  3. Only SAR files

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

WebLogic Server is a Java EE application server that supports multiple deployment archive formats. WAR (Web Application Archive) files contain web applications, EAR (Enterprise Application Archive) files contain enterprise applications with multiple modules, and SAR files are service archives. Since WebLogic can deploy all these types, 'All of the above' is the correct answer. Each format serves different application packaging needs.

Multiple choice technology web technology
  1. Development

  2. Staging

  3. Production

  4. A & C

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

WebLogic Server has three main modes: Development mode (optimized for development with auto-deployment and relaxed security), Staging mode (for testing applications before production), and Production mode (optimized for security and performance with stricter settings). The option 'A & C' is correct because Development and Production are the two primary operational modes that administrators choose between. Staging is more of a deployment phase than a server mode.

Multiple choice technology web technology
  1. BEA-000215

  2. ORACLE-BEA-000215

  3. MESSAGE-000215

  4. ERROR-000215

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Oracle WebLogic Server messages follow a specific format with the BEA- prefix followed by a 6-digit number. The BEA prefix comes from BEA Systems, the original creator of WebLogic before Oracle acquired it. This format is consistent across all WebLogic log messages, errors, and system messages. The other formats (ORACLE-BEA-, MESSAGE-, ERROR-) are not valid WebLogic message number formats.