-
July 12th, 2022, 03:47 AM
#1
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.
-
July 12th, 2022, 04:16 AM
#2
Re: Life cycle of a GWAN servlet
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|