Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

Ranch Hand
Posts: 207
  • 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:

I've put the content of "" and "" 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 :

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.

Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic