[flexcoders] Re: Programmatically managing BlazeDS ServerConfig

2008-12-21 Thread Michael Slinn
Cornel, You are doing the opposite of what I am doing. Instead of letting the compiler generate the code to read the XML configuration files, and then examining the variables, I am attempting to set the XML directly and configure BlazeDS that way, without using data files bound into the SWF. The

[flexcoders] Re: Programmatically managing BlazeDS ServerConfig

2008-12-17 Thread cornelcreanga
I've tested using SDK 3.1.0 and the following XML is obtained from ServerConfig.serverConfigData http://{server.name}:{server.port}/WebContent/messagebroker/amf"/> http://{server.name}:{server.port}/WebContent/mess

[flexcoders] Re: Programmatically managing BlazeDS ServerConfig

2008-12-16 Thread Michael Slinn
That produces a null result, as it should. The problem seems to be with the call to ServerConfig.getChannel(channelName). As I trace through the call, I see a call to ServerConfig.createChannel('my-amf'). It evaluates xml.channels.channel.(@id == channelId); which of course returns nothing becau

[flexcoders] Re: Programmatically managing BlazeDS ServerConfig

2008-12-16 Thread cornelcreanga
Try with ServerConfig.serverConfigData.channels.elements("channel")@["id"] instead of ServerConfig.serverConfigData.channels.elements("channel-definition")@["id"]