You need to use last snapshot instead of 4.0.1 because this bug was not resolved in last release.

See http://issues.apache.org/activemq/browse/AMQ-790 and http://www.nabble.com/Embedded-broker-with-Spring-%3A-java.lang.ClassCastException-tf1883713.html#a5165936

Reply via email to