Urgent - Reading Activemqobjectmessage in fluorinefx

View: New views
2 Messages — Rating Filter:   Alert me  

Urgent - Reading Activemqobjectmessage in fluorinefx

by Nikhil Goel-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hello:
 
I am trying to connect an AS2 client and a flex 3 application using Activemq message broker. Now I connected AS2 to my fluorinefx server side component using net connection and from this I can publish the message to activemq topics to which flex clients are subscribed. This one way communication is working perfect. Now about the communication from flex to AS2, I am initializing a listener to the activemq topic. I am able to receive this message from flex and then my intentions were to invoke a AS2 client side function to display the message. I understand that the message I am receiving is an ActiveMQObjectMessage. Issue here is that I am not able to get the body message out of it.


This is my flex 2 method that sends an asyncmessage.

public function sendMessage():void
{
var message:AsyncMessage = new AsyncMessage();
message.body = {userId: username.text, text: msg.text}
producer.send(message);
msg.text="";
}

This message comes in as a activemqobjectmessage in my listener. How do I read the userId and text out of this object. Any help would be really appreciated. This is kind of very urgent for me. Thanks!!!!!
 
 
Nikhil Goel
 

_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com

Re: Urgent - Reading Activemqobjectmessage in fluorinefx

by Support-179 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi Nikhil,
 
I'm a little bit confused by the description: there is an AS2 client (meaning Flash/AS2 swf) and a Flex3 client swf?
What does the communication "from flex to AS2" means? (I think you wanted to say .NET instead of AS2 or flex3, I'm just not sure which one)
 
Is the ActiveMQ part related to the Fluorine.NMS library or it is a custom activemq implementation?
 
Zoli


From: fluorine-bounces@... [mailto:fluorine-bounces@...] On Behalf Of Nikhil Goel
Sent: Wednesday, August 12, 2009 5:44 PM
To: fluorine@...
Subject: [Fluorine] Urgent - Reading Activemqobjectmessage in fluorinefx

Hello:
 
I am trying to connect an AS2 client and a flex 3 application using Activemq message broker. Now I connected AS2 to my fluorinefx server side component using net connection and from this I can publish the message to activemq topics to which flex clients are subscribed. This one way communication is working perfect. Now about the communication from flex to AS2, I am initializing a listener to the activemq topic. I am able to receive this message from flex and then my intentions were to invoke a AS2 client side function to display the message. I understand that the message I am receiving is an ActiveMQObjectMessage. Issue here is that I am not able to get the body message out of it.


This is my flex 2 method that sends an asyncmessage.

public function sendMessage():void
{
var message:AsyncMessage = new AsyncMessage();
message.body = {userId: username.text, text: msg.text}
producer.send(message);
msg.text="";
}

This message comes in as a activemqobjectmessage in my listener. How do I read the userId and text out of this object. Any help would be really appreciated. This is kind of very urgent for me. Thanks!!!!!
 
 
Nikhil Goel
 

_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com