You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Lopez Vellon, Ignacio" <il...@indra.es> on 2003/07/25 13:19:22 UTC

Broker = Connection ?

I believed thar a Broker class contains one connection to the DataBase, but yesterday
i read a e-mail that explain the diference , I am not be able to find this email again
so , Could anyone tell me the difference between  this two classes ?
	is the broker number equals to connection number ?


	thank you ?
-------------------------------------------------------------------------------------------------------------------
Este mensaje puede contener información confidencial y/o privilegiada. Si Vd. no es el destinatario/receptor indicado en este mensaje (o el responsable de entregar el mensaje al destinatario/receptor), no debe copiar o entregar este mensaje a nadie.

En ese caso, Vd. debe destruir este mensaje y rápidamente notificárselo al emisor mediante de un correo electrónico. Por favor, avise inmediatamente si Vd. o su empresa no consienten correo electrónico con mensajes de este tipo.

Las opiniones, conclusiones o cualquier otra información incluidas en este mensaje y que no haga referencia al negocio y la actividad de Indra Sistemas, S.A.. se entenderá que ni han sido dados, ni aprobados o respaldados por la misma.

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Broker = Connection ?

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi,
----- Original Message -----
From: "Lopez Vellon, Ignacio" <il...@indra.es>
To: <oj...@db.apache.org>
Sent: Friday, July 25, 2003 1:19 PM
Subject: Broker = Connection ?



I believed thar a Broker class contains one connection to the DataBase,
but yesterday
i read a e-mail that explain the diference , I am not be able to find
this email again
so , Could anyone tell me the difference between  this two classes ?
is the broker number equals to connection number ?
########################

We have two separate pools - PB-pool and Connection-pool
(more precisely each PBKey has a "sub-pool"). If you lookup
a PB (PersistenceBroker) instance no connection was associated.

When call beginTransaction() a connection was associated
(obtained for from connection-pool or created new - depending
on configuration) with calling PB instance.

On commitTransaction()/abortTransaction connection was released
to pool/closed (depends on configuration).
Without PB-transaction demarcation, the connection was associated
when first database action is done and released on PB.close().

Thus PB-pool(size) != connection-pool(size), but broker 'is nearly
equals'
connection.

HTH
regards,
Armin



thank you ?
------------------------------------------------------------------------
-------------------------------------------
Este mensaje puede contener información confidencial y/o privilegiada.
Si Vd. no es el destinatario/receptor indicado en este mensaje (o el
responsable de entregar el mensaje al destinatario/receptor), no debe
copiar o entregar este mensaje a nadie.

En ese caso, Vd. debe destruir este mensaje y rápidamente notificárselo
al emisor mediante de un correo electrónico. Por favor, avise
inmediatamente si Vd. o su empresa no consienten correo electrónico con
mensajes de este tipo.

Las opiniones, conclusiones o cualquier otra información incluidas en
este mensaje y que no haga referencia al negocio y la actividad de Indra
Sistemas, S.A.. se entenderá que ni han sido dados, ni aprobados o
respaldados por la misma.

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org