File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Share data between two web applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Share data between two web applications" Watch "Share data between two web applications" New topic

Share data between two web applications

Ajay Kamble
Ranch Hand

Joined: Jan 23, 2009
Posts: 51
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?

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30085

You can't pass request attributes between applications. You can pass parameters. Try a URL of /App2/page.jsp?id=1

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Check out this thread.
This may be of your interest.

Vijay Saraf.
Andreas Taber

Joined: May 14, 2012
Posts: 5

vijay saraf wrote:Check out this thread.
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.

IT Training Manager with the Hartmann Software Group
It is sorta covered in the JavaRanch Style Guide.
subject: Share data between two web applications
Similar Threads
Query for Kyle !!
IBM HttpServer and websphere Appserver
Error during deploy of war file on Websphere Application Server 7.0
Encryption/decryption while Communicate to database
executing db2 import statement from java