私はフレックスモバイルプロジェクトでパセリを使用しています。複数の宛先サービスがありますが、config.xmlファイルに別の宛先サービスを追加する方法に関するリソースが見つかりません。ファイルは以下の通りです:
<objects
xmlns="http://www.spicefactory.org/parsley"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.spicefactory.org/parsley
http://www.spicefactory.org/parsley/schema/2.4/parsley-core.xsd">
<object type="mx.rpc.remoting.RemoteObject" id="genBUS">
<property name="destination" value="genBUS"/>
<property name="endpoint" value="http://localhost:8080/ClinASM/messagebroker/amf" />
</object>
</object>
別のものを作成する場合
<object type="mx.rpc.remoting.RemoteObject" id="anotherBUS"></objects>
そして、やります
[Inject(id='genBUS')]
public var genBUS:RemoteObject;
複数のリモートオブジェクトを定義したと文句を言います。それはどのように機能しますか?別の宛先サービスを注入するにはどうすればよいですか?パセリについてもっと知識を得るのは素晴らしいことです...
更新:config.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Object
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="http://www.spicefactory.org/parsley">
<Object id="genBUS" type="mx.rpc.remoting.RemoteObject">
<Property name="destination" value="genBUS" />
<Property name="endpoint" value="http://localhost:8080/ClinASM/messagebroker/amf" />
</Object>
<Object id="karBUS" type="mx.rpc.remoting.RemoteObject">
<Property name="destination" value="karBUS" />
<Property name="endpoint" value="http://localhost:8080/ClinASM/messagebroker/amf" />
</Object>
</mx:Object>