The goal is to build a simple Remote Object access of a Spring DAO bean.
The Spring bean construction is good - a tool I've worked with before. The simple class (Test.class) accessed via Remote Object works fine too (I can pass parms into a simple method and grab the returned value). I've then built the Test.class injecting a Spring Bean. Logs show that worked. The problem is when the Remote Object accesses the Test.class w/ Bean - the DAO Bean is null (has not been injected into the Test instance accessed) So it looks like I get a new instance of Test and not the Spring constructed one. How come? ------------- My main Remote.MXML class looks like: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > <mx:Script> <![CDATA[ import mx.controls.Alert; [Bindable] public var txtStr:Object = "Say What???"; ]]> </mx:Script> <mx:RemoteObject id="srv" destination="remoteTest" endpoint="http://localhost:8080/Remote/messagebroker/amf" result="txtStr=event.result" fault="Alert.show(event.fault.faultString, 'Error');"/> <mx:VBox x="22" y="24" height="100%" width="603"> <mx:Label text="Remote Object Test"/> <mx:TextArea width="161" height="98" id="txt" text="{txtStr}" wordWrap="true" editable="true"/> <mx:Button label="Try Remote" click="txtStr=srv.hello(txt.text);"/> </mx:VBox> </mx:Application> --------------------------- My REMOTE-CONFIG.XML is: <?xml version="1.0" encoding="UTF-8"?> <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="remoteTest" > <properties> <source>com.metraflex.loops.Test</source> </properties> </destination> </service> --------- Thanks in advance.