Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Java Session and LCDS


Not applicable
I am trying to integrate a Flex application using LCDS with a legacy web-based Java application. The legacy application makes heavy use of the java session. I am able to get the jsessionid using HTTP service calls to the application however, calling LCDS, I cannot get the session.

I've tried the flex.messaging.getServletContext() but, this doesn't seem to be it. Any ideas would be helpful.

1 Reply


Hi. What channel/endpoint are you using to connect to the server? If it's RTMP or a streaming or polling channel that uses the NIO server there may not be an easy way to get at the HTTP session.

In general, I don't think it's a good idea to store stuff in the HTTPSession because it may not be available from all channels/endpoints.

If you do need to store stuff in the session though, I'd try using a HTTP (non NIO) streaming or polling channel. I am guessing using those channels' FlexContext.getServletContext() will work to get you the HTTP session.