问题
I am looking for suggestion about the error called
"No destination with id '<destination id>' is registered with any service."
this error is coming when I try to connect the remote method in Java from flex.
回答1:
I suppose you have not synchronized your remoting-config.xml
of server and client version. The server version just hasn't this destination there.
回答2:
The solution for "No destination with id '' is registered with any service" problem is that you have to make sure your destination definition is added in your:
C:\ColdFusion9\wwwroot\WEB-INF\flex\messaging-config.xml
Secondly, if you are deploying it on a ColdFusion Server, then you have to make sure exact same definition is added in Server messaging-config.xml file as well.
This should solve this problem.
While we are at it, wanted to point another possible gotcha.
if your Server is using SSL protocol i.e. it has https:// rather than http://, Then within your definition block in messaging-config.xml, you have to add appropriate secure channels in section. You can find all available channel definitions in
C:\ColdFusion9\wwwroot\WEB-INF\flex\services-config.xml
来源:https://stackoverflow.com/questions/5976246/how-to-overcome-no-destination-with-id-destination-id-is-registered-with-an