Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Section 3: 3: Integration and Messaging - Objective 3.3

 
Mirko Bernardini
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm training with a simulator and I received this question:

Your application sends three messages with no delivery failures to a JMS destination, where two consumers consume messages from the destination.
How do both consumers ensure they receive all messages?

A. Consumers listen to a JMS queue without message selectors.
B. Consumers listen to a JMS queue with message selectors.
C. Consumers subscribe to a JMS topic with message selectors.
D. Consumers subscribe to a JMS topic without message selectors.

The correct answer in my simulator is D (without any explanation), for me the correct answer is C !
If I must receive all the messages I don't need a message selector, what do you think ?
Which is the correct answer ?

Thanks

M.
 
Benoît de Chateauvieux
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you: you don't need message selector.
So good choice is D "topic without message selectors"...
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i too agree.
 
Mirko Bernardini
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The correct answer in my simulator is D (without any explanation), for me the correct answer is C !


Yes we right !!! in effect I inversed the letters on the post... I was sleeping
The correct answer in my simulator is C (without any explanation), for me the correct answer is D !

However thanksssssssss

Mirko
 
J J Wright
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see you're using the Sun ePractice exams. Take a look at this
 
J J Wright
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using the Sun ePractice exams, this thread may also be of interest to you.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!