Expand my Community achievements bar.

SOLVED

on-the-fly services and destinations?

Avatar

Level 1
Is it possible to create services and/or destinations on the
fly?



Specifically, I might want something where a client does a
RPC to create a new chat room. The name of the new destination is
returned from the RPC and then the client can start
producing/consuming on a destination id assigned at runtime.



I am just starting to look in to FDS and haven't been able to
determine this from the docs.
1 Accepted Solution

Avatar

Correct answer by
Level 1
3 Replies

Avatar

Level 1
Perhaps my question would be clearer in the reverse: is it
possible to have a data service that is not defined in the
appropriate service.xml file, but rather created by some server
class with a surprising name at runtime? Then it would also need to
be destroyed when I was done with it.

Avatar

Level 1
I think someone discussed this on the flex coder mailing list



basically had to use the selector atribute in the messaging
classes to achieve something like what you want as all the
destinations had to be defined in the config xml files.

Avatar

Correct answer by
Level 1
I've found the post you were talking about, thanks!




http://groups.yahoo.com/group/flexcoders/message/32814