Hi paromita, while compiling flex application , did you add compile time "services" argument . in this argument you need to give path of service_conf.xml file .
just search on net services arg of flex . you can find out Thanks Neeraj On Jul 8, 1:52 pm, Paromita Dey <paromita...@gmail.com> wrote: > Hi > > I am working on a small application where we have a data push from > backend and based on that the UI view gets refreshed. We have used > BlazeDS for messaging to Flex layer. Following the steps mentioned in > "http://livedocs.adobe.com/blazeds/1/blazeds_devguide/" we have added > the Consumer in Flex and subscribed it to a matching destination in > the messaging-config.xml. The respective java code is also added as > suggested. The application compiles without any error. When we run the > application the BlazeDS debug mode shows the message getting sent in > the log. BUT the message event is not getting triggered in Flex UI. > > We have been searching the net and blogs but could not find anything > different that we have not done. The problem remains. > > mxml - > --------------------------------- > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="vertical" > creationComplete="initApp();"> > <mx:Consumer id="refreshDashBoard" fault="handleMessageFault(event);" > destination="feed" message="handleMessage(event.message);" /> > </mx:Application> > > actionscript - > ---------------------------------------- > private function initApp():void{ > refreshDashBoard.subscribe();} > > private function handleMessage(message:IMessage):void{ > Alert.show(message.messageId + ' .......... data pushed'); > > } > > messaging-config.xml - > ----------------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <service id="message-service" > class="flex.messaging.services.MessageService"> > > <adapters> > <adapter-definition id="actionscript" > class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" > default="true" /> > <adapter-definition id="jms" > class="flex.messaging.services.messaging.adapters.JMSAdapter"/> > </adapters> > > <default-channels> > <channel ref="my-polling-amf"/> > </default-channels> > > <destination id="feed"> > > <properties> > <network> > <session-timeout>0</session-timeout> > </network> > <server> > <max-cache-size>1000</max-cache-size> > <message-time-to-live>1</message-time-to-live> > <durable>false</durable> > </server> > </properties> > > <channels> > <channel ref="my-polling-amf"/> > </channels> > > </destination> > > </service> > > services-config.xml - > ------------------------------------------------ > <?xml version="1.0" encoding="UTF-8"?> > <services-config> > > <services> > <service-include file-path="remoting-config.xml" /> > <service-include file-path="proxy-config.xml" /> > <service-include file-path="messaging-config.xml" /> > </services> > > <security> > <login-command > class="flex.messaging.security.TomcatLoginCommand" > server="JBoss"/> > </security> > > <channels> > > <channel-definition id="my-amf" > class="mx.messaging.channels.AMFChannel"> > <endpoint url="http://{server.name}:{server.port}/ > {context.root}/messagebroker/amf" > class="flex.messaging.endpoints.AMFEndpoint"/> > </channel-definition> > > <channel-definition id="my-secure-amf" > class="mx.messaging.channels.SecureAMFChannel"> > <endpoint url="https://{server.name}:{server.port}/ > {context.root}/messagebroker/amfsecure" > class="flex.messaging.endpoints.SecureAMFEndpoint"/> > <properties> > <add-no-cache-headers>false</add-no-cache-headers> > </properties> > </channel-definition> > > <channel-definition id="my-polling-amf" > class="mx.messaging.channels.AMFChannel"> > <endpoint url="http://{server.name}:{server.port}/ > {context.root}/messagebroker/amfpolling" > class="flex.messaging.endpoints.AMFEndpoint"/> > <properties> > <polling-enabled>true</polling-enabled> > <polling-interval-seconds>4</polling-interval-seconds> > </properties> > </channel-definition> > </channels> > > <logging> > <target class="flex.messaging.log.ConsoleTarget" > level="Debug"> > <properties> > <prefix>[BlazeDS] </prefix> > <includeDate>false</includeDate> > <includeTime>false</includeTime> > <includeLevel>false</includeLevel> > <includeCategory>false</includeCategory> > </properties> > <filters> > <pattern>Endpoint.*</pattern> > <pattern>Service.*</pattern> > <pattern>Configuration</pattern> > </filters> > </target> > </logging> > > <system> > <redeploy> > <enabled>false</enabled> > </redeploy> > </system> > > </services-config> > > Where could we have gone wrong? Please advise and suggest. > > Regards, > Paromita --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---