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
Re: Life cycle of a GWAN servlet