BlazeDSの動かしてみた(リモーティング)

Twitter ツイート Hatena Bookmark ブックマーク

基本的にこことか、ここのやり方を見ながらやっていたいのですが、若干つまったところが・・・。

なんかservices-config.xmlにすべての設定書いている解説になっていたので、何とかしたいと思ってがんばっていたのですがうまく動きませんでした。

でもファイルの書く場所間違えてただけみたいです。。死にたい。。。
blazeds3.2.0.3978だったら、services-config.xmlは基本的に設定を変更せずに「remoting-config.xml」の設定を変えればいいぽいです。

remoting-config.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19

<service id="remoting-service"
    class="flex.messaging.services.RemotingService">

    <adapters>
        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
    </adapters>

    <default-channels>
        <channel ref="my-amf"/>
    </default-channels>

    <destination id="amftest">
       <properties>
           <source>amftest.AmfTestService</source>
       </properties>

    </destination>
</service>

destinationを追加するだけでおkです。

comments powered by Disqus
Built with Hugo
テーマ StackJimmy によって設計されています。