CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2022
    Location
    Urbana, Illinios
    Posts
    14

    Question Life cycle of a GWAN servlet

    To store a database, I'm using C servlets and Kyoto cabinet.

    My question is, how does G-wan communicate with servlets?

    In comparison to java servlets, they have an init and service destruct life cycle. How does gwan work?
    Code:
    int main(int argc, char *argv[])
    {    
       KCDB *db = kcdbnew();
    
       if(!kcdbopen(db, "casket.kch",KCOREADER)) {
       fprintf(stderr, "open error: %s\n", kcecodename(kcdbecode(db)));
      }
    Is it feasible to first establish a database connection and then share it with many web requests?

    Scaler Topics
    Last edited by Nathan D; July 14th, 2022 at 01:14 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Life cycle of a GWAN servlet

    Is your post just a copy/paste from https://stackoverflow.com/questions/...let-life-cycle ?
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured