Java Messaging Service

Access: Public Instant Grading

Start FlashCards Download PDF Quiz Series Learn

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
The objective of this session is to introduce the subject of software engineering. When you have read this session you will understand what software engineering is and why it is important, know the answers to key questions which provide an introduction to software engineering, understand ethical and professional issues which are important for software engineers.

Introduction

Virtually all countries now depend on complex computer-based systems. More and more products incorporate computers and controlling software in some form. The software in these systems represents a large and increasing proportion of the total system costs. Therefore, producing software in a cost-effective way is essential for the functioning of national and international economies.

Software engineering is an engineering discipline whose goal is the cost-effective development of software systems. Software is abstract and intangible. It is not constrained by materials, governed by physical laws or by manufacturing processes. In some ways, this simplifies software engineering as there are no physical limitations on the potential of software. In other ways, however, this lack of natural constraints means that software can easily become extremely complex and hence very difficult to understand.

Software engineering is still a relatively young discipline. The notion of ‘software engineering’ was first proposed in 1968 at a conference held to discuss what was then called the ‘software crisis’. This software crisis resulted directly from the introduction of powerful, third generation computer hardware. Their power made hitherto unrealisable computer applications a feasible proposition. The resulting software was orders of magnitude larger and more complex than previous software systems.

Early experience in building these systems showed that an informal approach to software development was not good enough. Major projects were sometimes years late. They cost much more than originally predicted, were unreliable, difficult to maintain and performed poorly. Software development was in crisis. Hardware costs were tumbling whilst software costs were rising rapidly. New techniques and methods were needed to control the complexity inherent in large software systems.

These techniques have become part of software engineering and are now widely although not universally used. However, there are still problems in producing complex software which meets user expectations, is delivered on time and to budget. Many software projects still have problems and this has led to some commentators (Pressman, 1997) suggesting that software engineering is in a state of chronic affliction.

As our ability to produce software has increased so too has the complexity of the software systems required. New technologies resulting from the convergence of computers and communication systems place new demands on software engineers. For this reason and because many companies do not apply software engineering techniques effectively, we still have problems. Things are not as bad as the doomsayers suggest but there is clearly room for improvement.


Quiz PDF eBook: 
Java Messaging Service
Download JMS Quiz PDF eBook
20 Pages
2010
English US
Educational Materials



Sample Questions from the Java Messaging Service Quiz

Question: Which JMS messaging application components are obtained via JNDI lookups?

Choices:

Connection

ConnectionFactory

Session

MessageProducer

Destination

Question: What are the components of a JMS messaging application?

Choices:

a Queue

a Message Producer

a WebService end point

a Message Convertor

a Connection

Question: What is the role of a JMS Destination component?

Choices:

a client uses the destination component to specify the target of messages that it produces

a client uses the destination component to specify the source of messages that it consumes.

a destination component creates connections with the source clients

a destination component creates connections with the destinations clients

Question: Which of the following is NOT a JMS message valid body format?

Choices:

ByteMessage

ObjectMessage

CharMessage

TextMessage

Question: Which JMS messaging application component is responsible for producing and consuming messages, managing transactions, and handling acknowledgments?

Choices:

Connection

ConnectionFactory

Session

Message Sender and Message Receiver

Question: Which of the following applications are appropriate to communicate asynchronously?

Choices:

Courses registration in a university, where courses availability must be checked by another application before registering the course

Email services (sending and receiving emails)

A client sends a document (such as an XML document) to a travel agency service requesting arrangements for a particular trip

Question: What is TRUE about synchronous and asynchronous communications?

Choices:

In an asynchronous communication, the requester of a service must wait for a response from the service

In synchronous communication, the requester of a service must wait for a response from the service

In synchronous communication, both parties must be active

Synchronous communication overcomes asynchronous communication in terms of performance

Question: Which is considered an asynchronous protocol?

Choices:

Remote Procedure Call (RPC)

Remote Method Invocation (RMI)

Java Messaging Service (JMS)

HTTP

Question: Which of the following is FALSE?

Choices:

the asynchronous consumer is notified when new messages arrive

The synchronous consumer client checks and collects messages from destination and doesn't wait for notifications from destination

An asynchronous consumer client checks the destination in time-intervals for any new messages

Question: What is not considered a way in messages acknowledgement?

Choices:

AUTO_ACKNOWLEDGE

RECEIVER_ACKNOWLEDGE

CLIENT_ACKNOWLEDGE

DUPS_OK_ACKNOWLEDGE

Question: Which is true about synchronous and asynchronous messaging in JMS?

Choices:

a QueueReceiver or a TopicSubscriber in JMS, use the receive() method to consume a message synchronously

a QueueReceiver or a TopicSubscriber in JMS, must use a message listener to consume a message synchronously

a QueueReceiver or a TopicSubscriber in JMS, can consume a message asynchronously by using a message listener

in asynchronous messaging, the onMessage() method of the consumer is invoked when a message arrives

Start FlashCards Download PDF Quiz Series Learn
Yasser Ibrahim
Start Quiz
Edgar Delgado
Start Test
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-messaging-system-jms" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>