[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.

[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 services service id=remoting-service/ service id=proxy-service destination id=DefaultHTTP channels channel ref=my-amf/ /channels /destination /service service

[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]

[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