Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

EPractice Lab mock exam 1 question 45.

 
Bartender
Posts: 2180
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Scenario: given below:
i) good for transaction processing
ii) network need not be available, messages can be queued
iii) tight coupling between sender and receiver
iv) network must be available

which of the cases are not suitable for synchronous communication?

a. case i and ii only.
b. case iii and iv only.
c case i , iii, iv
d. case ii, iii, iv
e. case i, ii, iii
f. case ii only.
Answer: f
JMS provides a standard Java-based interface to the message services of a MOM of some other provider. Messaging systems can be either asynchronous or synchronous and can be classified into different models that determine which client receives a message.
Synchronus messages are more suitable for good transaction processing, fail-safe communication and coping with error situations. It increases the coupling between sender and receiver. Blocks sender until the receiver is finished processing. Network must be available. More demanding on communication mechanisms.



I think the answer should be a).

"Synchronous messages are more suitable for good transaction processing"


I think with asynchronous messaging, a transaction can be done. For example, a servlet A asynchronously dispatches a transaction task to servlet B.

 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So by answering A you are saying that synchronous communication is not suitable for transaction programming?
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic