This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Calling Servlet from SQL Server Stored Procedure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Calling Servlet from SQL Server Stored Procedure" Watch "Calling Servlet from SQL Server Stored Procedure" New topic
Author

Calling Servlet from SQL Server Stored Procedure

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
Hi

I have written one stored procedure for making XML HTTP Request.

Below is my procedure



and when i call my servlet the code of the servlet is not getting executed. i am not able to understand the reason.

initially i thought its not actually making any request. so i passed the wrong url, in that case it returned me a response with 404 error code.

but with the correct URL it is going me OK response but code of the servlet is not getting executed.

below is my servlet code in which i am creating file and writing into it

TestServlet.java



Jigar Naik


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling Servlet from SQL Server Stored Procedure