This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring service activator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring service activator" Watch "Spring service activator" New topic
Author

Spring service activator

Tony Ennis
Ranch Hand

Joined: May 22, 2003
Posts: 86
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, ExampleServiceActivator.foo() 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?

 
jQuery in Action, 2nd edition
 
subject: Spring service activator
 
Similar Threads
system.dead.letter.queue
system.dead.letter.queue
Persistent Messages, What heppens if a system is started!
Using JMS correlation id pattern in ALSB,
Example of service-activator?