Subject IBO 4.0 with ISAPI Example
Author alexp772001@yahoo.it
Hi,
I'm evaluating IBO4 with D6. I'm trying to create an ISAPI but I
didn't find anything in the IBO Help. So this is the way I used:

- on the dispatcher I put an IB_Connection.
- on a datamodule (created at runtime) I put a IB_Session (which is
the first in creation order) and a IB_Cursor.

I do the following steps:

oncreate: connect to the db.

onbeforedispatch: create the datamodule and link all IB_Cursor or
IB_Query to the IB_Connection.

onaction: do something.

onafterdispatch: destroy the datamodule.

ondestroy: close the connection.

I do all this in some try...except so I'm sure every component
creation or db connection is followed by a destruction/disconnection.

Is this the right way (I'd like to share the same connection for all
users)? May I use a different method?


Thank you very very much.

Best Regards,
Alessandro.