Bear Bibeault wrote:The required jar files are missing from your web app. Add them to WEB-INF/lib.
Rob Spoor wrote:I don't know JSch well and haven't been able to quickly find any Javadoc pages, so my answer's just going to be a guess.
I see two possible options:
1) copy the file from server A to server C, storing the contents in a temporary file. Then copy the file from server C to server B, after which you delete the temporary file.
2) do the same but without storing it as a file. If you can get an InputStream to the file on server A and an OutputStream to the file on server B, simply copy everything from the InputStream to the OutputStream. Data will still be going from server A through server C to server B, but there's no temporary file.
Look at the SCP exampls at the following link. This would help you in achieving what you are looking for..
JSCH Examples
Bear Bibeault wrote:Using a JSP to generate the JSON is a major problem. Use a servlet instead.
Jan Cumps wrote:
That is different than your original post:Gopi Chand Maddula wrote:...But my requirement is just getting the last 100 rows of the each table and thats it.
I have a Requirement to display the latest 100 rows inserted into the table.
Deepak Bala wrote:
You do of course realize that is not a valid solution ? "select *" in the second query does not order by any column. If you are able to obtain the desired result, it is purely by coincidence.
Paul Sturrock wrote:No.