I’ve created a AMF channel using the following block of codes:
var cs:ChannelSet = new ChannelSet();
var amfChannel:Channel = new AMFChannel("my-amf", "http://localhost:8080/lcds-samples/messagebroker/amf");
cs.addChannel(amfChannel);
This does not show any errors. But whenever I change ‘localhost’ by my machine’s IP, i.e.,
var cs:ChannelSet = new ChannelSet();
var amfChannel:Channel = new AMFChannel("my-amf", "http:// 192.168.1.102:8080/lcds-samples/messagebroker/amf");
cs.addChannel(amfChannel);
it is throwing errors as follows:
Received fault: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://192.168.1.102:8080/lcds-samples/messagebroker/amf'"]
I’m using JBoss 5. I could provide more details if it is required. Please help