Altough is possible to use JMS in synchronous integration, the given scenarios in OCMJEA, if it's mandatory to be synchronous, should JMS not be eligible for this requirement, regarding the best practices?
SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
posted 2 years ago
All of these decisions are always relative.
If we're talking about integrating with a JMS system that's already in place and you need to integrate into it in a "synchronous" way, then there's not much else to do. By this I mean something like what's described here, where you block until you get a response. This sometimes happens in the real world, and you just have to deal with it.
However, in more general cases, when integrating two systems in a synchronous way, JMS is NOT a good option (compared to RMI, WebServices, JDBC, etc). If we're talking about the OCMJEA (either the exam or the assignment), I think this is what would apply unless they specifically mention that there's no other way around it (which I think is unlikely).