S
spacerobots
Hi,
I'm writing two servlets, and I would like one to call the other.
Each one will reside on seperate machines.
Let's call them servlet1 and servlet2. servlet1 needs to pass a file
to servlet2. So I'd like to call up servlet2's doPost method and pass
in the file that way. Then when servlet2 is finished doing its work,
it needs to pass back a different file that it has created. So I'm
thinking I would just dump the return file into the response and that
would come back to servlet1. Is that the most sensible way to do it?
If not, please enlighten me! If so, can anybody point me in the right
direction with code examples? How can I put in a URL in my java code
and call that URL?
Thanks in advance,
-Ryan
I'm writing two servlets, and I would like one to call the other.
Each one will reside on seperate machines.
Let's call them servlet1 and servlet2. servlet1 needs to pass a file
to servlet2. So I'd like to call up servlet2's doPost method and pass
in the file that way. Then when servlet2 is finished doing its work,
it needs to pass back a different file that it has created. So I'm
thinking I would just dump the return file into the response and that
would come back to servlet1. Is that the most sensible way to do it?
If not, please enlighten me! If so, can anybody point me in the right
direction with code examples? How can I put in a URL in my java code
and call that URL?
Thanks in advance,
-Ryan