Solved

Linking Struts Application with FLEX Application

Posted on 2010-08-19
7
601 Views
Last Modified: 2013-11-24
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
0
Comment
Question by:darien_software
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33482337
0
 
LVL 40

Accepted Solution

by:
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
http://www.corej2eepatterns.com/Patterns2ndEd/InterceptingFilter.htm
0
 

Author Comment

by:darien_software
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..

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 40

Expert Comment

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

0
 

Author Comment

by:darien_software
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.


http://download-llnw.oracle.com/javaee/1.2.1/api/javax/servlet/http/HttpSession.html
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 500 total points
ID: 33485206
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
 

Author Comment

by:darien_software
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".
 

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to find Tomcat initial memory and Max memory through command line windows 12 143
Problem to setup 18 92
wordlen challenge 3 60
JUnit 4 @Before and @BeforeClass differences 3 48
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now