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();
List <Agent>a = findAgents();
invoke method is
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)"/>

<destination id="BlazeDsServicePush">
<channel ref="my-streaming-amf" />
<adapter ref="BlazeDsServicePushAdapter"/>

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.