The context root is not something that the swf can automatically substitute
into the URI value at runtime on the client based on where it was served from,
so you need to provide it at compile.
If you're using the JEE webtier compiler that happens automatically.
If you're using MXMLC at the command line, or FlexBuilder, add a the
-context-root={value} compiler argument, where {value} is the actual context
root for your JEE webapp.
Best,
Seth
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
jlopes151
Sent: Sunday, November 30, 2008 3:09 PM
To: [email protected]
Subject: [flexcoders] Param to a channel endpoint
Were the channel-definition is
<channel-definition ....
<endpoint uri="http://{server.name}/{server.port}/
{context.root}/messagebroker/fastamfpolling" ....
what happens is the {context.root} get filled with the wrapped in
single quotes. I then get a "Send Failed" error. Were is the
context.root passed? I have gotten around this by putting the channel
on my <mx:RemoteObject>