Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    blazeDS consumer does not send messages to client in production alone

    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>

  • #2
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Is your production server IIS? It has to have the java components installed if it is. Your QA may already have this.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •