• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inter servlet communication [ two different containers]

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am calling a servlet deployed on machine 2 (M2) from servlet on machine 1(M1). Servlet M2 accepts xml as querystring and writes the response using printWriter.


Can i still read the same response in my servlet on M1? I am calling servlet on M2 susing URLconnection but I receive xml which i posted as querystring in inputstream.


I have tried the same with local servlet but that is giving me 505 error.
My scenario is similar to this thread --> http://forum.java.sun.com/thread.jspa?threadID=672133&messageID=3927859

Pleae help me asap
Thanks,
Ketan
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what you mean by "calling".
Servlets are not called, methods are called.

Are you making a request from M1 to M2 directly with URLConnection or HttpClient, or are you using sendRedirect to cause the client to make a new request to M2?
 
reply
    Bookmark Topic Watch Topic
  • New Topic