You'd need to write a consumer that reads messages from the DLQ (the easy
part) and writes them to wherever you want them stored, like a database or
flat files or whatever (the hard part). Since the hard part of the problem
will be different for any given ActiveMQ user, there's no built-in
capability to do it.