How about this in messaging-config.xml: <default-channels> <channel ref="my-polling- amf" /> </default-channels> <destination id="FlexDemoTopic" > <channels><channel ref="your-polling-flexdemo-amf"/></channels> </destination> <destination id="destStockData" > <channels><channel ref="your-polling-stock-amf"/></channels> </destination>
And this in services-config.xml: <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel" > <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf\polling" class="flex.messaging.endpoints.AMFEndpoint" /> <properties> <polling-enabled>true</polling-enabled> <polling-interval-seconds>60</polling-interval-seconds> </properties> </channel-definition> <channel-definition id="your-polling-flexdemo-amf" class="mx.messaging.channels.AMFChannel" > <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf\polling" class="flex.messaging.endpoints.AMFEndpoint" /> <properties> <polling-enabled>true</polling-enabled> <polling-interval-seconds>2</polling-interval-seconds> </properties> </channel-definition> <channel-definition id="your-polling-stock-amf" class="mx.messaging.channels.AMFChannel" > <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf\polling" class="flex.messaging.endpoints.AMFEndpoint" /> <properties> <polling-enabled>true</polling-enabled> <polling-interval-seconds>1</polling-interval-seconds> </properties> </channel-definition> I put the default at 60 seconds, the demo at 2 seconds and the stock at 1 second. Have to dig into the documentation a bit to get this (http://opensource.adobe.com/wiki/display/blazeds/Developer+Documentation) --- In [email protected], "ilikeflex" <ilikef...@...> wrote: > > Hi > > I have two destination defined in the messaging-config.xml file > > <default-channels> > <channel ref="my-polling-amf" /> > </default-channels> > > <destination id="FlexDemoTopic"> > </destination> > > <destination id="destStockData"> > </destination> > > and my-polling-amf is defined in the services-config.xml file > > <channel-definition id="my-polling-amf" > class="mx.messaging.channels.AMFChannel"> > <endpoint > url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf\ > polling" class="flex.messaging.endpoints.AMFEndpoint"/> > <properties> > <polling-enabled>true</polling-enabled> > <polling-interval-seconds>1</polling-interval-seconds> > </properties> > </channel-definition> > > > Now, if the polling interval is different for two different desinations > then how should i configure my channel to support two different polling > intervals. > > Thanks > ilikeflex >

