• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Communication from different Servers  RSS feed

 
Srinivasa Vallabha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want know is it possible for two different Servlets running on two different Servers to communicate each other ?
If Yes how can we do this ?
Can we use same RequestDisplatcher for this ?
If No please let me know the reason
Thanks in Advance
Srinivasa Vallabha
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets on different Servers can talk to each other by URLConnections. OR - if they are on the same internal network you could use socket communication, RMI, etc.
A RequestDispatcher is only valid within a single servlet container since it has to hand request and response objects to the target.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!