• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Share data between two web applications

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41151
848
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out this thread.
https://coderanch.com/t/540759/Portals-Portlets/java/two-servlets-deployed-separate-web
This may be of your interest.
 
Greenhorn
Posts: 5
Netbeans IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

vijay saraf wrote:Check out this thread.
https://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.
reply
    Bookmark Topic Watch Topic
  • New Topic