Message-Driven POJOs
is a detailed blog entry by Craig Walls which explores the
Spring-based, JMS, 'message-driven POJOs' available as part of the
ActiveMQ codebase. This code effectively tries to replicate EJB MDB
functionality, in plain java objects configured via Spring.
Update 2005-7-22: part 2, Message-driven POJOs revisited, is now available.
Colin's
note: while this code is part of the ActiveMQ codebase, when talking to
James Strachan in mid-May 2005 about it, James mentioned that while the
code has been used and tested mostly with ActiveMQ, there is nothing
inherently ActiveMQ-specific about it. Usage with other JMS servers
will at a minimum require testing and verification.