Linking Struts Application with FLEX Application

Posted on 2010-08-19
Last Modified: 2013-11-24

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
Question by:darien_software
  • 4
  • 3
LVL 40

Expert Comment

ID: 33482337
LVL 40

Accepted Solution

gurvinder372 earned 500 total points
ID: 33482347
Using this you can have a common place from requests can be forwarded and redirected to a appropriate application (url)

Some examples

Author Comment

ID: 33482584
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..

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

LVL 40

Expert Comment

ID: 33482688
i haven't tried this, but same session object should be carried to the other URL


Author Comment

ID: 33482894
Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another.
LVL 40

Assisted Solution

gurvinder372 earned 500 total points
ID: 33485206
check this

you can forward the request to another servlet in same server using RequestDispatcher.forward() method.

Author Comment

ID: 33490586
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".


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse formatting 6 106
servlet filter example 37 72
ejb wildfly example 2 25
junit as external jar or library 7 24
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question