|
The method on your java class appears to be called "doTest", but your MXML method for your RemoteObject is called "createTest"... but that aside, I think something else is wrong with your connectivity because the client can't seem to connect to the channel endpoint. When you compile your mxml file, did you remember to specify a --services command line switch to point to your services-config.xml file (which is typically in /WEB-INF/flex/services-config.xml)? Also, it appears your remoting service destination is using the "my-amf" channel... can you check this channel definition in services-config.xml and if the endpoint uri attribute has a {context.root} token you'll either need to replace this with the web application context root "/myapp" or specify it on the command line as --context-root=/myapp Note that if you change services-config.xml or any of the included services files (such as remoting-config.xml) you'll need to restart the server and recompile your mxml. If you're using Flex Builder you may also want to force a recompile by doing a clean first. From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jonathan_merey Sent: Wednesday, September 27, 2006 12:49 PM To: [email protected] Subject: [flexcoders] Problem with RemoteObject Java Hi, I have an application with flex 2.0, flex data services and java and I
want to access methods of my JAVA classes. So I use the remoteObject.
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |

