• 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

Figuring out how to forward stored procedure call in JMS destination queue  RSS feed

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Locally, I have ApacheMQ installed on my Windows Machine. And using this simple Spring JMS example mentioned here https://codenotfound.com/spring-jms-activemq-example.html, I was able to see how send and receive thing works in Spring JMS and my ApacheMQ looks like the following:



Her's my sender class :



And here's my Receiver code:



So, now in my User Interface, I have a "Download" button somewhere and when a user clicks on it, it is supposed to call a stored procedure which is going to take time.
1)I am trying to understand, how would I call this JMS application when a user clicks on the download button so that I could send the stored procedure call to the Sender. I mean there is no end point defined in the code above just like if we were to use a REST, the request would be hitting Controller.
2) And how would sender be sending it to the destination queue, in the form of a string message just like shown in the example above?
3) I guess if I would have clear idea about sender processing this, I might get some idea about how Receiver is going to handle this.
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
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!