File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Synchronous Messaging & EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Synchronous Messaging & EJB" Watch "Synchronous Messaging & EJB" New topic
Author

Synchronous Messaging & EJB

Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

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.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
J J Wright
Ranch Hand

Joined: Jul 02, 2008
Posts: 254
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


SCJP, SCWCD, SCBCD, SCEA 5
J J Wright
Ranch Hand

Joined: Jul 02, 2008
Posts: 254
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

Joined: Oct 16, 2003
Posts: 1075
    
  10

Thanks very much for your replies.


Ranga.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Synchronous Messaging & EJB
 
Similar Threads
messaging, any help appreciated
Is Message -Driven Beans Part of exam 1 ?
JMS - (A)synchronous ?!?
MQSeries or messaging simple question
regarding Point-to-Point messaging system