Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets Scenario Question

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no specific requirement actually...Just wanted to know the possible ways it can be achieved.

Thanks.
 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic