I have blazeds working on a channel I have set up, but how do you filter out
the
information you broadcast on that channel? If I want to send data to one
instance of my
application, but no another, how do I determine that. Here is how I set up the
message in
java and flex. I have tried setting the consumer.selector as it says to in the
documentation,
but that doesn't seem to do anything, at least not the way I'm doing it. Here
is the code:
<!-- flex code -->
<mx:Consumer id="consumer" destination="factory"
message="msgHandler(event.message)"/>
<!-- actionscript snippet
consumer.selector = "reportID = '"+reportID+"'";
consumer.subscribe();
-->
// java code
message = new AsyncMessage();
message.setDestination("factory"); // the channel I've set up
message.setClientId(clientID);
message.setMessageId(UUIDUtils.createUUID());
message.setTimestamp(System.currentTimeMillis());
message.setHeader("reportID", this.getRepID());
message.setBody(channelDef); // my object
service.pushMessageToClients(message, false);