我有以下设置工作的Flex/BlazeDS的应用程序(简单AMF远程):的BlazeDS + Flash Builder中:在设置网络应用程序参数
服务器-config.xml文件:
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://www.mydomain.com:443/myapp/messagebroker/amfsecure.amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
而在Flash Builder 4.6>属性> Flex服务器:
Root URL: http://www.mydomain.com/myapp
Context Root: /myapp/
问题是我有我所有的java文件的坐在一个目录:
WEB-INF/classes/
并简单地使用了系统默认包(例如,没有在java文件中指定的包)。最终,大量的文件变得压倒性的。为了提高我的组织,我开始使用包和在这个过程中,我创建了以下目录:
WEB-INF/classes/com/mydomain/
WEB-INF/classes/com/mydomain/mytools/
WEB-INF/classes/com/mydomain/hr/
WEB-INF/classes/com/mydomain/utilities/
etc...
现在有没有java文件坐在WEB-INF/classes/
目录(他们已经被转移到它的各个子目录)。
我的问题是如何修改services-config.xml
文件和/或Flash Builder>属性> Flex服务器设置?我已经尝试了许多不同的设置和我总是收到以下错误:
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url:...
我的想法是,大多数人使用WEB-INF/classes/com/mydomain/
架构安排自己的项目,所以我希望有人能与我分享他们的是什么设置看起来像。
Adobe的网站提供了以下信息,但我不明白我在做什么错:The root folder specifies the top-level directory of the web application (the directory that contains the WEB-INF directory). The root URL specifies the URL of the web application, and the context root specifies the root of the web application.
预先感谢任何意见/提示,以什么尝试。
UPDATE1:
这里是我的目的地(从远程处理-config.xml中):
<destination id="mySecureDestination">
<channels>
<channel ref="my-secure-amf"/>
</channels>
<properties>
<source>myApplicationClass</source>
<scope>application</scope>
</properties>
</destination>
你能告诉我们你的目的地(S)的定义是什么? – RIAstar