image
Topic Questions for Messaging
Start course
Difficulty
Intermediate
Duration
1h 32m
Students
14
Description

In this course, we will learn the concepts of Java EE 7 with a focus on Java Message Service.

Learning Objectives

  • Java Message Service (JMS)

Intended Audience

  • Anyone looking to get Oracle Java Certification
  • Those who want to improve Java 7 EE knowledge
  • Java developers

Prerequisites

  • Have at least 2 years of Java development experience 
Transcript

Hello there, dear friends. We have now finished exploring the Java Messaging Service topic. We will now practice by answering some questions about it. Let's begin with the first one. What technology supports asynchronous and synchronous communication out of the box? JAX-WS supports JAX-RS and JCA synchronous communication but does not automatically support asynchronous communication. But, as we have learned, JMS supports asynchronous and synchronous communication. So, the correct answer is B. Let's go on to the next question. Which of the options reveals Enterprise Information System as EIS sources in a general way? JMS, JAX-WS, and JAX-RS do not support communication with the Enterprise Information System, EIS. JCA provides an overview of EIS resources. So, the correct answer is C. Let's go on to the next question. Which web service technology supports the industry standards for security, reliability, and operations? There is no technology known as JAX-SRT, JAX-RS, and JAXB do not automatically support standards for security, reliability, and operations. But, as we have learned, JAX-WS is a web service technology that supports industry standards for security, reliability, and operations. So, the correct answer is B.

Let's go on to the next question. Which of the technology options uses annotations to map database tables and columns to Java objects?  JDBC, JDO, and JCA do not use annotations for ORM. JPA uses annotations to map database tables and columns to Java objects. So, the correct answer is C. Go on to the next question. hich API ensures an appropriate and simple way to create, send, get and read an enterprise messaging system's messages? JMS, JDBC, JAX-WS, JPA. JDBC, JAX-WS,  and JPA are not messaging APIs. Java Messaging Service, also known as JMS, provides a convenient and easy way to compose, send, receive and read corporate messaging system messages. So, the correct answer is A. Let's go on to the next question. Which of the options lets Java EE applications handle messages asynchronously? Message-driven kernels, or MDB for short, allow Java EE applications to process messages asynchronously. So, the correct answer is D.

Let's go on to the next question. Which technology is used to create source adapters that support input to Enterprise Information Systems, also known as EIS? JCA is used to create resource adapters that support access to EIS. So, the answer is B. Go on to the next question. Which of the options is not used in web service communication? XML, SOAP, RMI, JSON. XML, SOAP, and JSON are used in web services. Of course, we don't need to use them at the same time. RMI is not used in web service communication. So, the answer is C. Go on to the next question. Which of the options uses industry standards for web service communication? REST, JCA, JAX-RS, JAX-WS. REST and JAX-RS do not use industry standards for web service communication. JCA has nothing to do with the web service. JAX-WS uses industry standards for web service communication. So, the correct answer is D, done.

Go to the next question. Which of the options is a valid industry standard for SOA integration? JCA is not related to the web service. JAX-RS and REST SOA Integration are not industry standards. JAX-WS is an industry-standard for SOA integration. So, the correct answer is B. Go to the next question. Which of the options are valid for SOA architecture and design? Identify the server interface, catalog, categorize and tag service interfaces, provide Quality of Service, QOS at a suitable level, associate the service interface to XSD and WSLD. All of the options, each is individually false as they are all valid collectively. All are valid considerations for SOA architecture and design. So, the answer is E. Next question. Which of the options is the most appropriate feature of Service-Oriented Architecture as SOA? Web services, load-balanced resources, performance of Enterprise JavaBeans as EJB, loosely coupled components. EJB performance, web services, and load-balanced resources, although valid features, will not be improved or degraded by adapting SOA to an application architecture.

From the given list, loosely coupled components are the most relevant feature of SOA. So, the answer is D. Go on to the next question. You have been assigned by a company to select the best technology for integrating its Java EE-based sales and marketing application with its Java EE accounting system using an asynchronous approach. Which technology option will you select? Let's look at the options JMS, JCA, JAX-WS, and JAX-RS. JCA, JAX-WS, and JAX-RS do not automatically support asynchronous communication. JMS is the only technology listed with support for asynchronous Java-to-Java application integration. So, the correct answer is A. Let's look at the next question. You have been assigned by a company to select the best technology for integrating its Java EE-based sales and marketing application with its legacy EIS accounting system. Which technology option will you select? JAX-WS, JAX-RS, and JMS are not preferred integration options with the legacy EIS. JCA is the preferred choice for EIS integration technology.

So, the answer is C. Go on with the next question. You are designing a resort to loosely couple multiple Java applications. Which of the integration technologies is the best preference? RMI, EJB, JCA, and JDBC, do not support loose coupling between Java applications. None of the selections apply to loose coupling of Java applications. So, the correct answer is E. Let's go on to the next question. KNAB is a bank that has an available Enterprise Information System, EIS, that is to be integrated with a new web-based banking application. It is your mission to suggest how this will be achieved. Which of the options would you propose? EJB, JPA, and JAX-WS are not preferred integration options with the legacy EIS. JCA is the preferred choice for integration technology for EIS. So, the answer is D. Now, let's go on to the next question. SeeEmmEss Corp is a futures exchange that receives billions of electronic bids and quotes for commodities, such as oil, gas, and cotton, throughout the day via a Java web application. Customer offers and offers are queued and processed without immediate approval by a java application server hosting the marketplace.

Successful bids and bids are reported when matched according to market rules, like lot size, time, etc. What integration technology would you prefer between the server that hosts the web application and the server that hosts the marketplace? JMS queue with MDB SELF. JCA, EJB using JPA, Java Web Services, JAX-WS, or JAX-RS. JCA, EJB using JPA and Java Web Services, JAX-WS or JAX-RS are asynchronous and do not meet Java to Java requirements. JMS with MDB supports Java, Java integration with the added capability that the market does not need to immediately accept the success or failure of the incoming offer or offer. So, the correct answer is A. We are now finished exploring this topic. In the next video, we will start to examine a new topic. See you in the next video.

 

About the Author
Students
2820
Courses
64
Learning Paths
4

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics