Computer Knowledge
Java Enterprise and Web Technologies
2,183 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
-
Service Callout
-
Routing
-
Publish
-
Java Callout
C
Correct answer
Explanation
The Publish action in OSB implements fire-and-forget semantics where the message is sent to a JMS topic or queue without waiting for a response. This is different from Service Callout or Routing which expect synchronous responses.
-
XML variables
-
XML variables shared across the request flow.
-
XML variables shared across response flow.
-
XML variables shared across request and response flows.
D
Correct answer
Explanation
The OSB message context is a shared data structure accessible throughout both the request and response phases of message processing. XML variables stored in the context persist across the entire message flow, enabling data passing between different stages.
-
Business Service
-
Proxy Service
-
Message Flow
-
None of the above
A
Correct answer
Explanation
In OSB, a Business Service defines the interface to an external backend provider. It contains the endpoint URL, protocol configuration, and transport settings required to connect to the actual service implementation. Proxy Services, by contrast, are client-facing interfaces.
-
Service Callout
-
Java Callout
-
Publish
-
Route Node
B
Correct answer
Explanation
Java Callout is the OSB action that allows invocation of Plain Old Java Objects (POJOs) from within a message flow. This enables custom Java logic to be executed during request/response processing. Service Callout is for calling other services, not Java classes directly.
-
Service Callout
-
Routing
-
Publish
-
Java Callout
C
Correct answer
Explanation
In messaging and integration patterns, Publish is the classic fire-and-forget interaction type - the sender sends a message and doesn't wait for a response. Service Callout and Java Callout typically expect responses (request-response), and Routing directs messages but isn't itself an interaction type.
-
XML variables
-
XML variables shared across the request flow.
-
XML variables shared across response flow.
-
XML variables shared across request and response flows.
D
Correct answer
Explanation
In OSB, the message context is a storage mechanism that maintains XML variables accessible throughout both the request and response phases of message processing. Variables stored in the message context during the request pipeline remain available during the response pipeline, enabling data to persist across the entire message lifecycle. This distinguishes it from options that restrict variables to only one flow direction.
-
Business Service
-
Proxy Service
-
Message Flow
-
None of the above
A
Correct answer
Explanation
In OSB architecture, Business Services are the components that connect to actual backend provider systems (external web services, databases, legacy systems, etc.). Proxy Services are client-facing endpoints that receive incoming requests. The question specifically asks about the interface to backend provider services, which is the definition of a Business Service. Message Flow is the internal processing logic, not the interface itself.
-
Service Callout
-
Java Callout
-
Publish
-
Route Node
B
Correct answer
Explanation
OSB provides the Java Callout action specifically for invoking POJO (Plain Old Java Object) methods within a message flow. Service Callout is used for calling other OSB proxy services or external web services, not Java classes directly. Java Callout allows you to execute custom Java code and integrate Java libraries into OSB mediation logic.
-
The Application Object Manager
-
The File System Manager
-
The Synchronization Manager
-
The Siebel Web Engine
A
Correct answer
Explanation
The Application Object Manager (AOM) is the server component that provides the runtime environment for Siebel applications. It handles user sessions, executes business logic, manages data access through business components, and coordinates all application server operations. The other options serve different purposes - file management, data synchronization, and web page generation.
-
The server has a built-in JVM
-
The browser has a built-in JVM
-
The source code is interpreted by the browser
-
Applets don''t need a JVM.
B
Correct answer
Explanation
Applets are compiled into platform-independent Java bytecode. They can run on any client machine because the user's web browser contains or integrates with a JVM plug-in that executes this bytecode locally.
-
Create a JVM for applets
-
Extending a web server by providing dynamic web content.
-
Storing information in applets.
-
Loading buttons and menus.
B
Correct answer
Explanation
Servlets are Java programs that run on a web server or application server, dynamically generating web content in response to client requests. They extend the server's capabilities by enabling dynamic, interactive web applications that go beyond static HTML pages.
-
main method
-
start method
-
init method
-
paint method
C
Correct answer
Explanation
When a web browser loads an applet, it calls the init() method first - this is where one-time initialization happens. The browser then calls start() to begin execution, and may call paint() when the display needs rendering. The main() method is NOT used in applets - that's for standalone applications.
-
request
-
page
-
application
-
session
-
session store
C
Correct answer
Explanation
The application object holds data that is shared by all users across the entire application scope. Session objects hold data per user session, request objects hold data for a single HTTP request, and page objects are scoped to individual page instances.
-
POST
-
GET
-
GETPOST
-
REQUESTRESPONSE
A
Correct answer
Explanation
Wicket uses POST as the default method for form submission. POST is preferred for forms because it can send larger amounts of data and doesn't expose parameters in the URL. GET can be explicitly configured but is not the default.
-
Web Service Definition language
-
Web Service Description Language
-
Simple object Access Protocol
-
interface Definition Language
B
Correct answer
Explanation
WSDL (Web Service Description Language) is the standard XML-based interface definition language for web services. It describes the service's location, available operations, and message formats. SOAP is a protocol for message exchange, not an interface description language.