Is there a way to configure a JMS message queue to drop all received messages automatically? (In other words: for the sender it must look like the message arrived ok, but the queue should silently drop it. That is, the queue should behave like "/dev/null") In case that matters, I'm most interested in IBM MQ, however, if JMS specification offers this possibility, that would be even better.
Since I already tried searching, and did not find such a possibility, I suspect the answer is "no". So an answer that confirms that this is the case (and I'm not missing anything) is also valid for me.
Use case: test a system, that sends messages to a real JMS queue, which (in the test setup) are not read out by any other program. (I do not want to mock the JMS queue, to keep the test environment as close to production as possible. For the same reason, it is also not a valid solution to e.g. set "time to live" for the messages on the client side.)