Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring service activator  RSS feed

Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the docs we see

I'm using JMS queues. Assuming I have my queue wired to inChannel, does this mean that every single time a message is written to inChannel, will be called?

What if two messages are written to inChannel at the same time (or close enough. You know what I mean ) ? Will it kick off one thread per message and potentially process them concurrently? Or will the ExampleServiceActivator be invoked serially, once for each message?

I'm having an issue that I originally thought was a JMS issue, but now I think it's some manner of ServiceActivator issue, or an XA transaction issue.

Namely, I'm putting 5 messages into a queue but my service activator is only being invoked twice. As I look at the queue using Gems I can see the other messages are there... But they'll never be processed.

Any ideas?

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