0 Replies Latest reply on Mar 24, 2010 11:09 AM by learningflex

    blazeds app not working only from production

    learningflex
      In QA the app works fine, whereas in PRD . findAgents() is a method which calls the stored procedure. In PRD the invoke method is not called. Is there any reason it is not called by only the production server. I am using Flex/BlazeDs/Java. Let me know if any settings are missing or if i need to make sure of anything. the app is loaded properly initially and the problem starts when it tries to refresh every 1 min. It does not refresh since the invoke method is not called.
                     MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
                     while (running){
                                              AsyncMessage msg = new AsyncMessage();
           msg.setDestination("BlazeDsServicePush");
           msg.setClientId(clientId);
           List <Agent>a = findAgents();
           msg.setMessageId(UUIDUtils.createUUID());
           msg.setBody(a);
                          msgBroker.routeMessageToService(msg,null);
           }                              
      invoke method is      
           @Override
           public Object invoke(Message msg) {
                          
                     logger.info("Adapter sending message Test");
                     AsyncMessage newMessage = (AsyncMessage)msg;
                     MessageService msgService = (MessageService)getDestination().getService();
                     msgService.pushMessageToClients(newMessage, true);
                return null;
           }
      
      
      In mxml  
      <mx:Consumer id="consumer" destination="BlazeDsServicePush" resubscribeAttempts="1" resubscribeInterval="10000"  message="messageHandler(event)"/>
      
      messaging-config.xml
      <destination id="BlazeDsServicePush">
        <channels>
            <channel ref="my-streaming-amf" /> 
        </channels>
        <adapter ref="BlazeDsServicePushAdapter"/>
       </destination>