Linking Struts Application with FLEX Application

Hi

I have multiple modules, some of them are implement in struts and other are in  flex (blaze ds) and each module is a different war file ( web application). now i need to share the session Object among all the applications.

my problems are

1. how to share a session object between two different struts applications
2. how to share struts modules' httpSession object with Flex module
3. how to share blazeds's FlexSession with Struts module.
4. if session sharing is not possible can i share a normal java object like USERInFO which should be removed if session is lost.

i tried 4th problem by serialization but if user loses the session it got some security issues..

anybody suggest any other ways to resolve this problem
darien_softwareAsked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
Using this you can have a common place from requests can be forwarded and redirected to a appropriate application (url)

Some examples
http://www.corej2eepatterns.com/Patterns2ndEd/InterceptingFilter.htm
0
 
Gurvinder Pal SinghCommented:
0
 
darien_softwareAuthor Commented:
thanks for your solution

From your solution we can forward the request to any other appropriate application url, but how can we maintain the present session in other application.

how to carry the present session object to the next application..

0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Gurvinder Pal SinghCommented:
i haven't tried this, but same session object should be carried to the other URL

0
 
darien_softwareAuthor Commented:
Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another.


http://download-llnw.oracle.com/javaee/1.2.1/api/javax/servlet/http/HttpSession.html
0
 
Gurvinder Pal SinghConnect With a Mentor Commented:
check this
http://www.stardeveloper.com/articles/display.html?article=2001062401&page=1

you can forward the request to another servlet in same server using RequestDispatcher.forward() method.
0
 
darien_softwareAuthor Commented:
yes we can forward the request to another servlet in same server using  RequestDispatcher.forward()

but my problem is maintaining same user session when communicating between two different  "web appliactions".
 

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.