Hi, ----- Original Message ----- From: "Lopez Vellon, Ignacio" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
