Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Synchronous Messaging & EJB

 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yesterday I was taking one of the mock exams in Whizlabs simulator and there were questions about how EJB supports Synchronous (not asynchronous) messaging. What do they mean by Synchronous messaging? Do they just mean the RMI call which is Synchronous? Or do they mean reading a Queue directly? The question was very confusing.


Ranga.
 
J J Wright
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Asynchronous messaging is supported by message-driven beans, but JMS also has a request/paradigm that can be utilized by any bean through the JMS API. A bean can use the JMS API to send a message and wait for the synchronous reply. Check out section 2.10 'Request/Reply' in the JMS 1.1 spec
 
J J Wright
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They could of course also be referring to some kind of synchronous RPC style web service. Remember that both web services and JMS can be used in an synchronous or asynchronous fashion.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much for your replies.


Ranga.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic