Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Trying to include JMS sender and producer in my spring boot app

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my spring boot app, I am trying to fit in the sender and receiver logic for JMS queue as described here: https://codenotfound.com/spring-jms-activemq-example.html

I've put the content of "Sender.java" and "Receiver.java" classes from the above documentation in the DataRetrieverDaoImpl class.
And created SenderConfig and ReceiverConfig classes separately in the same package where I've DataRetrieverDaoImpl class.

Is this a good way to integerate JMS from the documentation above into my REST API flow or should I have separate Sender and Receiver class in the same package where I have my implementation defined? OR is it like
I should have producer and sender defined always in the controller itself like they have done here : https://grokonez.com/spring-framework/spring-boot/use-spring-jms-activemq-jms-consumer-jms-producer-spring-boot

But if I follow the above approach and place it in the controller, then I might not be able to push things onto queue after hitting `download` endpoint.

So, I have controller defined as follows:


Here's my Data Access Object:



Here's my implementation of DAO.




 
reply
    Bookmark Topic Watch Topic
  • New Topic