Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Share data between two web applications

 
Ajay Kamble
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using Websphere 7.

And we want to pass data from one web application to different web application using request dispatcher forward,



How can you do this in websphere?

-Ajay
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't pass request attributes between applications. You can pass parameters. Try a URL of /App2/page.jsp?id=1
 
vijay saraf
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this thread.
http://www.coderanch.com/t/540759/Portals-Portlets/java/two-servlets-deployed-separate-web
This may be of your interest.
 
Andreas Taber
Greenhorn
Posts: 5
C++ Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vijay saraf wrote:Check out this thread.
http://www.coderanch.com/t/540759/Portals-Portlets/java/two-servlets-deployed-separate-web
This may be of your interest.


Although the JNDI approach may work, it's a tricky one because it introduces product dependencies and spaghetti code scenarios. Web dev is complicated enough as it is without introducing a workaround using WebSphere. Moreover, JNDI will only work effectively provided that these web apps are deployed on the same server. It's better to use http calls.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic