The first line calls the method which creates the destination. It is really created and started (its isValid() and isStarted() methods return true)
However when I run the code I encounter the following error (which points to the "consumer.subscribe();" line):
[MessagingError message='Destination 'test' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']
None of the items the error message is complaining about are true. Destination 'test' does exist, it has a channel (shown in the Java code) and also in the messaging-config.xml a default channel is defined:
It also should be mentioned if I change the "test" to any destination that is explicitly defined in the messaging-config.xml it would work. (Instead of actionscript I also tried doing the same thing in mxml to no avail).
I would appreciate any help to resolve this issue.