| Author |
Servlets Scenario Question
|
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
We have two Web Applications in an Application server and Servlet1 in web application1 wants to talk to servlet2 in webapplication2. How can this be achieved? Can anyone tell me? Thanks.
|
Be Humble... Be Nice.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
What does "talk to" mean in that context? Do you have a specific communication requirement? Or are you just fishing for ideas?
|
 |
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
There's no specific requirement actually...Just wanted to know the possible ways it can be achieved. Thanks.
|
 |
Schandha Ravi
Ranch Hand
Joined: Oct 20, 2007
Posts: 167
|
|
|
There are so many threads available on this topic. You may want to search using the Keyword "Cross Context Communication". One way to accomplish this is using URLConnection.
|
Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
Since the thing being "talked to" is a servlet, would it be fair to assume that the "talking" consists of sending a request to the servlet and receiving the response that it returns? Other scenarios don't really make sense for servlets.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56229
|
|
|
Similar topic
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Servlets Scenario Question
|
|
|