Hello, I am fairly new to both Flex and J2EE development but I have developed a collection of EJBs running under an application server to service a multi-user Flex application. I believe I can connect to the EJBs through either a facade POJO, or using something like this: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1089970 to invoke the bean methods directly.
My problem is how do I authenticate and track user state throughout their use of the application (the issue is raised here: http://www.forta.com/blog/index.cfm/2006/9/24/Flex-And-Session-State-Management but it doesn't seem to provide an answer). If passing of some kind randomly generated session ID is required, I am wondering what is the best way to approach this from the J2EE point of view?
Perhaps I am overcomplicating the situation. If I were to specify a Stateful Session Bean as a remote destination, would a new instance be automatically instantiated for each user instance, without the need for any kind of session ID tracking?