开发者

Overwrite BlazeDS / FlexDataservice endpoint

I'm using the build in Flex Dataservice to connect to a BlazeDS server. Flex is using the *.fml file within the model folder for the connection details, within that file you can find the following:

<annotation name="ServiceConfig">
  <item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
  <item name="contextRoot">/MYWEBAPP</item>
  <item name="rootUrl">http://192.168.178.21:8080/MYWEBAPP</item>
  <item name="LINKED_FILE"></item>
  <item name="ABSOLUTE_ENDPOINT">http://192.168.178.21:8080/MYWEBAPP/messagebroker/amf</item>
</annotation>

the _super_Database class created by Flex DataService uses that configuration to setup a remote object for communications. Now i'm looking for a way to overwrite those settings within the Database class which extends the _super_Database class开发者_如何学JAVA. can anyone assist?


If you want to define channels and other RemoteObject information at run-time without specifying a services-config file at compile time; then you can use this link to give you the information you need to do that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜