[FASTCGI] How to integrate JSP and FastCGI

Matt fastcgi-developers at wilber.pointclark.net
Sun Nov 8 04:25:21 EST 2009


Have a look at "echo-cpp.cpp" which is located in the examples directory.

You can do your first part of the computation in the:
int main (void)
body and the second part of the computation in this loop:
while (FCGX_Accept_r(&request) == 0)


  ----- Original Message ----- 
  From: tarun parihar 
  To: fastcgi-developers at mailman.fastcgi.com 
  Sent: Saturday, November 07, 2009 7:45 PM
  Subject: [FASTCGI] How to integrate JSP and FastCGI


  Hi All,

  I need to develop a web system which involve scientific computation with lot of data. 
  And need to do present the computed result using graphs. 

  Scientific computation code is developed using C++
  Initially I tried using CGI library for executing and getting results. 
  And JSP for presenting computed result. (as java has rich and easy support for that)

  But it takes lot of time to respond as computation is complex.

  The computation can be devided in to parts-
  1. Commen compution to initialise and populate huse datastructures. (takes more time)
  2. Request specific computation using already populated datastructures. (takes less time)

  I am thinking to use FastCGI for this such that first part of the computation is done when FastCGI process starts and when user give a request, second part of the computation will be done. And hence he will get a faster response. 

  I have no idea how to make it work. I am stuck here. Can anybody guide me how I should proceed? 

  Your help will be most appreciated. 

  Regards,
  Parihartarun



------------------------------------------------------------------------------


  _______________________________________________
  FastCGI-developers mailing list
  FastCGI-developers at mailman.fastcgi.com
  http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20091108/9ca65043/attachment.html>


More information about the FastCGI-developers mailing list