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 Communication between servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Communication between servlets" Watch "Communication between servlets" New topic
Author

Communication between servlets

paddy smith
Greenhorn

Joined: Mar 01, 2012
Posts: 3
Hi experts!

how to communicate between 2 servlets which are present in two different web applications?

case1: two web applications are deployed in the same server (for example tomcat)
case2: two web applications are deployed in two different servers (for example tomcat and weblogic)

need help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Impossible to say without more context. For example, do they just need to share data? If so, they could both access the same database.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Atul Darne
Ranch Hand

Joined: Jul 05, 2009
Posts: 118

query strings can be used if they are on the same server


Regards, Atul.
I came to this world on a Learner's License
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Atul Darne wrote:query strings can be used if they are on the same server

Query strings can be used whether they are on the same server or not.

Assuming that's the type of communication that the OP is talking about -- we still don't know.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication between servlets