The EhCache (v2) documentation references a bug in Active MQ that causes issues with Cache replication via Active MQ. The text is reproduced in full below. This bug referenced (https://issues.apache.org/jira/browse/AMQ-1255)
was closed in ActiveMQ 5.1 Apr 2008.. I am trying to find out for certain (without actually testing for myself of course) whether EhCache JMS Cache distribution using the current Active MQ (classic - 5.16+).
Here's the text from the EH documentation that doesn't seem to have been revised since originally written...
"ActiveMQ seems to have a bug in at least ActiveMQ 5.1 where it does not cleanup temporary queues, even though they have been deleted. That bug appears to be long standing but was thought to have been fixed. See
http://issues.apache.org/activemq/browse/AMQ-1255.
The JMSCacheLoader uses temporary reply queues when loading. The Active MQ issue is readily reproduced in Ehcache integration testing. Accordingly, use of the JMSCacheLoader with ActiveMQ is not recommended."