Hi,

we are using the OJB-layer in a Client/Server app. Each client is represented by a
thread on the server. Each client wishes to write to the database.

Currently I'have designed it in the following way:

Each thread gets an Instance of a class which uses the broker. In each method of
the class is implemted in the following way:

PersistenceBrokerFactory.createPersistenceBroker(pbkey);

// do some db stuff

broker.close();

Will such a design make use of connection pooling and is this a resource saving way
to use the broker?

Please give me some advice on whether this is a good design or how it could be
improved.

Thanks for your Help,

Yours,
  Stefan Schlösser

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to