Expand my Community achievements bar.

Flex EJB Session tracking


Level 1
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:
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:
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?

Thanks for any help in advance

2 Replies


Level 1
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?