My scenario:
I'm using JSP and FMS(Flash Media Server) to build a live chat room.
I create a liverooms folder in fms_insatall_dir/applications/, so my Application name is liverooms.
My demands:
I need multi rooms with different names(that is multi instances in liverooms application in FMS term)
Actually I need to generate names of rooms dynamically in my Java code.
My problems:
Can I connect to FMS via Java? If ok how can I send add instance messages dynamically to FMS?
I know ActionScript can do this, if I can't use java, then how to use ActionScript in a JSP page?
Any help would be greatly appreciated.
thx!
You can connect from FMS to a running Java app using BlazeDS, using a server-side-ActionScript NetConnection, like so:
This assumes you configured your servlet container to redirect this type of request correctly. See example here.
You may read through the richly-documented sample services-config.xml file in order to learn more about the various modes in which BlazeDS can be configured to work. I've been using it in "remoting" mode, but "messaging" seems like a better fit for your use-case.