File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Two Web applications deployed under two different Servers 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 » Java » Servlets
Bookmark "Two Web applications deployed under two different Servers" Watch "Two Web applications deployed under two different Servers" New topic
Author

Two Web applications deployed under two different Servers

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I have two Web applications deplooyed in two different web servers .

Now i am having a question here , i am contacting from one web application to another , Now please tell me , i guess that these two aplications have two different sessions created by each of their web server .

1.If two sessions were created , then what is the approipaite way of passing large data two and fro between these two applications .

Please suggest , thanks

Please correct me if i am wrong .




Save India From Corruption - Anna Hazare.
Nilesh Miskin
Ranch Hand

Joined: Jun 17, 2010
Posts: 44
Why not use a database where one Web app can store the data & other can retrieve?
Also you can think about Web services if you are trying to implement a scalable producer-consumer kind of paradigm.


Nilesh Miskin
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
If you search for "web apps communication" or some such phrase through these forums you will find multiple previous discussion on this subject. Bottom line #1: There are many way for web apps to communicate. Bottom line #2: SearchFirst.
Monika Joshi
Greenhorn

Joined: Apr 19, 2010
Posts: 9
Hi, You can use request.setAttribute("data", actual data object), i.e set the data in the request and the other app can then access it.

Regards
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60743
    
  65

Minakshi Sood wrote:Hi, You can use request.setAttribute("data", actual data object), i.e set the data in the request and the other app can then access it.

No, it can't. Not even close.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Two Web applications deployed under two different Servers
 
Similar Threads
Need to run one servlet application from subfolder of another servlet application.
Switching between two different web applications
Interlinking two seperate applications
How to pass Session object between two web apps
Implementing Single Sign On