This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • 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.




 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!