| Author |
Share session variable between web applications.
|
|
| Roy Tsang 2005-12-13, 2:49 am |
| As some one tell me that, to share session variable between 2 web
application,we can put 2 web application into a *.ear file then deploy it to
server.
However, I just test this implementation, I found that does not work.
Do anyone tell me why?
thank you very much
| |
| Ken Hygh 2005-12-13, 7:56 am |
| Roy Tsang wrote:
>As some one tell me that, to share session variable between 2 web
>application,we can put 2 web application into a *.ear file then deploy it to
>server.
>
>However, I just test this implementation, I found that does not work.
>
>Do anyone tell me why?
>
>
>thank you very much
>
>
>
>
>
http://www.google.com/search?q=webs...+site%3Aibm.com
Ken
| |
|
|
| Ken Hygh 2005-12-14, 7:50 am |
| Roy Tsang wrote:
>I have searched google before.
>But I got no solution.
>
>"Ken Hygh" <kenhygh@nc.rr.com> ???????:dnmcgf$6kd6$1@news.boulder.ibm.com...
>
>
>
>
>
>
So, looking at the very first link found in this search, it is not clear
that you've followed these directions.
If you need expert help, contact your local IBM office, they'll be happy
to get a contract in place to get you expert help.
Ken
| |
|
| I'm not exactly sure what you are after, but to have multiple applications in the same session share data I have used:
org.apache.jetspeed.portlet.User user = ((org.apache.jetspeed.portlet.PortletRequest)request).getUser();
user.setAttribute("foo", "bar"); // in one app
. . .
String foo = (String)user.getAttribute("foo"); // in another app
This does not require any special packaging.
-- Frank
| |
|
| Ignore that. I was incorrectly thinking you were in a portal.
-- Frank
| |
| Roy Tsang 2005-12-15, 2:51 am |
| First of all, I thank all of you .
I am using the application server tool kit to solve the problem.
That mean both of my application can access the same session variable.
thank you very much
<flawlor@athensgroup.com>
???????:765461446.1134588935933.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> Ignore that. I was incorrectly thinking you were in a portal.
>
> -- Frank
|
|
|
|