Multiple Flex Data Services’ instances and Flex Messaging destinations

by Niklas Richardson 3:52 pm Friday, 23 February 2007.

When running multiple instances of Flex Data Services on the same server and using Flex messaging, ensure that the messaging destinations used (and specified in messaging-config.xml) are unique across ALL instances of Flex Data Services.

If you do not, Flex messaging will only work for the FDS instance that was started last that had the duplicate messaging destination name. This is due to ALL messaging destinations across ALL FDS instances being registered in the same central location using RMI.

We are using Flex Messaging with ColdFusion Event Gateways and it is fine for the Flex Messaging event gateway to have the same name across all CF instances on the same machine. You just have to ensure that all Flex messaging destinations in FDS are different, and specified properly in your Flex and ColdFusion code.

You will also need to ensure that the RTMP ports that FDS is using are different across all FDS instances. Douglas McCarroll has a good post on “Setting RTMP ports for your FDS Flex apps“.

I’d like to thank João Fernandes, Tom Jordahl and Mike Nimer for their pointers in finding out the solution for this issue.

1 Comment »

  1. Can you explain why after doing this that when I stop one instance of our application, the other instances start receiving RMI related errors? I have to stop and start each other instance running in order for the applications to work again.

    Comment by Bernie — Tuesday, 23 October 2007 @ 6:30 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment