...

View Full Version : blazeDS consumer does not send messages to client in production alone



saha ch
03-24-2010, 08:12 PM
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>

jerry62704
04-23-2010, 03:55 PM
Is your production server IIS? It has to have the java components installed if it is. Your QA may already have this.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum