ColdFusion Integration with Flex application

1]Create Flex application

Ex: main.mxml

2]Create Externalizing Service Configuration using BlazeDS or LCDS

Ex:As like a Remote Object

3]Set global variable for each of channel sets:

private var messagingChannelSet:ChannelSet;
private var remotingChannelSet:ChannelSet;

4]MXML file setup remote object and my consumer/producer

5]In init() setup channels, add them to the channelset and then setup consumer and producer:

remotingChannelSet = new ChannelSet();
var rChannel:AMFChannel = new AMFChannel(“my- cfamf”, “http://localhost/flex2gateway”);
cfsvc.channelSet = remotingChannelSet;

messagingChannelSet = new ChannelSet();
var mChannel:AMFChannel = new AMFChannel(“cf-longpolling-amf”, “http://localhost/flex2gateway/amflongpolling”);

chatConsumer.channelSet = messagingChannelSet;
chatProducer.channelSet = messagingChannelSet;

chatConsumer.subtopic = instanceID + “.CHAT”;

5]Now Run the Server

About ashokabhat

I am a C,C ,JAVA,Adobe Flex,.NET Programmer Currently working as a Software Developer
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s