• 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
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

SCEA- JMS Question again

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are designing an online shopping application to make it easier for customers to order products from your company. The aim is that the majority of customers buying over the telephone will start using the web instead. When customers purchases goods online they will use credit cards and will require an instant response as to whether the sale has been approved or not. (Note that the credit card validation is carried out by another very powerful system.)

What type of messaging should be used?
Choose one answer.
a. Synchronous messaging
b. Asynchronous messaging
c. You shouldn't be using messaging at all as its not transactional.
d. You could use messaging because it is transactional however it is not advised, as the system would never perform well enough for an instant response.

I would say option d. But as usual the authors of mock feel option a.

"Choice A is correct.

Synchronous messaging provides an instant response and is therefore the right answer. It is always arguable as to whether messaging should be used if you require an instant response but if you do decide to use messaging then you should always use synchronous messaging when needing an instant response.

Choice B is incorrect because asynchronous messaging does not provide an instant response. You can make messaging transactional by creating your own transactions in your code. Hence, choice C is incorrect.

Choice D is arguable too, but it is not the most appropriate answer because the question suggests that the system the messages will be sent to is very powerful and will be able to cope with the volume of traffic. Therefore, choice D would be incorrect as it suggests that the system will not perform well enough for an instant response. "

I am getting such questions always wrong !
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what your question is.

If you're having trouble with integration related topics check out this article on Developer Works as a starting point.

Enterprise Integration Patterns is also a good resource.

Also read the introductory sections in the appropriate specifications. They usually contain information on what a technology is and what it's uses typically are.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this case, I understand the answer (although I symphatise with your frustration). The correct answer is "A", because of the giveaway 'immediate response' and the incorrectness of the other options:

asynchronous messaging is wrong here (see above)
C/D is wrong, because MDBs CAN BE transactional, but this is not necessarily the case, and messaging in itself is unrelated to transactional issues: this is a matter of implementation
 
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