Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-24-2010, 07:12 PM   PM User | #1
saha ch
New to the CF scene

 
Join Date: Jan 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
saha ch is an unknown quantity at this point
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>
saha ch is offline   Reply With Quote
Old 04-23-2010, 02:55 PM   PM User | #2
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,049
Thanks: 9
Thanked 82 Times in 82 Posts
jerry62704 is on a distinguished road
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
jerry62704 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21 AM.


Advertisement
Log in to turn off these ads.