Sharing sessions?

mint

Member²
We have to save concurrent db sessions since customers are running out of licensed sessions. Typically two or three applications are running at the same time all using a session with the same db user.

Is there a way to share a single session (or two) between all applications? It is unlikely that all the applications need it at the same time - a critical section could take care of this of serializing the access.

As far as I know even different threads need a dedicated session, let alone full applications and I have read that datasets must not be shared among different threads (is this also true if concurrent access is prevented?).

A broker-kind of architecture might be the key here. Are there any implementations of this available?

Rgds
Werner Lehmann
 
You can only share a session within a single Windows task, between different threads and DLL's.

To share a session between different tasks, you need to use a 3-tier approach. The server application will own the (single) session that can service multiple client applications.

------------------
Marco Kalter
Allround Automations
 
Back
Top