Also, I have two web applications - Flex and rpcdataservice. Inside my rpcdataservice I have a web-inf folder, inside which I have another flex subdirectory. I am modifying the remote-config.xml file in my flex subdirectory inside my rpcdataservice web application. I am NOT modifying it in the flex web application (The Flex root).
Should I have a correponding actionscript file for my Java class ? I was under the assumption that those are required only if I am using them as data types. Here the return type is just a String.
No, you don't need need Actionscipt files in this case. Your remoting-config.xml file is correct but maybe your application tries to pick remoting-config.xml from the Flex folder? Why don't you define PlayerDB in WEB-INF/ of Flex folder as well and see if that makes a difference?
I removed flex, flex-admin directories, and kept just the rpcdataservice (my app) as the only webapp under Tomcat. What I see is that if I launch .mxml from the browser, it works, but when I launch the .swf file it complains about 'unknown destination'.
I compiled the .mxml into .swf frm command-line using the batch file I mentioned in the earlier message.
So .mxml works, but .swf doesn't work. Again I am launching both the files from the browser.
By the way, when you compile mxml yourself, make sure you use --compiler.services <path_to_services-config.xml>. This points the compiler to your services configuration file and that way all the destination information gets compiled into the swf.