I have a message queue set up (using ActiveMQ, Java and Flex Data Services) and a servlet that I call using an HTTPService, the servlet returns a queue name for my Flex app to subscribe to, and then a subscribe takes place.
The problem I am experiencing is with a few of the initial messages not being picked up by the consumer. I thought it might have something to do with our event listeners not being registered with the consumer object in time (I was doing it at run time with ActionScript at first). So, we tried two other variations, doing it via ActionScript in a doInit method (called upon creationComplete) and also specified in the Consumer tag in the MXML document. Results are a bit better, but messages are still being lost initially. I am using JConsole to track the enqueue and dequeue of the messages, and according to it, all messages have been put on the queue and pulled off of the queue by a single consumer. I am logging the Java app that is putting messages on the queue, so I can tell precisely when messages are sent, and I am also logging on the client side via the debug player to see what messages are received and when. I have even tried putting a 5 second sleep timer in the UI to stall the subscription to the queue. No luck there either. Also, I wanted to make sure the event listeners were attached prior to subscribing, so I put in a while loop that ran willTrigger on the consumer's message event until it returned true. Kind of running out of ideas here. Has anybody had any flaky behavior like this in the past? We still suspect event listeners, but we've exhausted our options there. Any help or ideas would be appreciated! Thanks, Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/