You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Mauro Tosca <ma...@gmail.com> on 2004/11/23 23:50:23 UTC

connection to database

Hi.

I am trying to publish a web service to access a database: a client
calls the ws, the ws makes a query to the database and returns the
retrieved data as a string.

Modifying the skeleton generated by axis, i've written in the init
method of MyClassPortType.cpp the code to open a connection to the
database. I thought it would be the only connection of the ws, shared by all
the client's requests. But i noticed the service is quite slow: i
suppose that the init method is executed for EVERY client's request.
Am I wrong?

If the init method is executed every time, for every call to the ws,
what's for? In this way, if i understood, the web service is
completely stateless...or have i completly misunderstood everything??
..you know, it's really likely! :)

thanks a lot!

Mauro