• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Questions regarding using JMS vs REST  RSS feed

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1:I figured that REST and JMS are different things and used depending upon what's needed. With JMS  asuchronous messaging is possible since it follows FIFO (Queue/Topic based model). I was reading online somewhere that the asynchronous messaging is possible with REST as well. Based on what I understood, if
it depends upon client to decide whether the REST request it's planning to send should be synchronous or asynchronous. But if the client is using Javascript, javascript is single threaded, so I am wondering, how parallel (asynchronous) requests would be possible in this scenario?


Q2: I am planning to use Spring JMS for asynchronous requests as well as synchronous request. Basically, I have a stored procedure that's going to take hours and hence I am planning to send this request to JMS queue. If I understood JMS properly, how does the SQL query or call to a stored procedure will get executed in the MOM (let's say ApacheMQ), I mean how it's going to communicate with the Oracle database to execute the stored procedure/SQL query?
 
Saloon Keeper
Posts: 5328
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it's possible to start several REST requests in parallel from Javascript, at least not if that Javascript is part of a web page.

Furthermore, I don't think that JMS is well suited for synchronous processing. I'm fairly sure it didn't even support that way back when I looked into it, although that may have changed in later releases.
 
please buy my thing and then I'll have more money:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!