Re: How to integrate JSP and FastCGI

"Matt" <fastcgi-developers-ZZ3zTlmqjYs1+lMOHNVa3ltFE3g8mehB@public.gmane.org>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <00f201ca6055$65b6b5c0$e701a8c0@cu>
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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org 
  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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
  http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.