Hi Mark, ----- Original Message ----- From: "Mark Rowell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 4:09 PM Subject: Threading issues
> Dear all > > To use the PB API safely in a multi-threaded environment, do I have to have > a distinct persistance broker instance > per thread? Yes, this is recommended > E.g. rather than using > PersistenceBrokerFactory.defaultPersistenceBroker() do I have to use > PersistenceBrokerFactory.createPersistenceBroker(PBKey key) and associate > this with the currentl executing > thread? I don't exactly understand what you mean. Both methods do the same 'thing', return a PB instance from the PBF. defaultPersistenceBroker() is a convenience method for createPersistenceBroker(pbKeyToTheDefaultRepository) HTH, Armin > > Thanks > > Mark Rowell > > ---------------------------------------------------------------- > Mark Rowell > CreditTrade > > T: +44 (020) 7400 5078 > M: mailto:[EMAIL PROTECTED] > > > > CreditTrade Limited is regulated by the FSA. � CreditTrade 2002. All rights reserved. The information and data contained in this email is provided for the information purposes of the addressee only and should not be reproduced and/or distributed to any other person. It is provided without any warranty whatsoever and unless stated otherwise consists purely of indicative market prices and other information. > > Any opinion or comments expressed or assumption made in association with the data or information provided in this email is a reflection of CreditTrade's judgement at the time of compiling the data and is subject to change. CreditTrade hereby makes no representation and accepts no responsibility or liability as to the completeness or accuracy of this email. > > The content of this email is not intended as an offer or solicitation for, or recommendation of, the purchase or sale of any financial instrument, or as an official confirmation of any transaction, and should not be construed as investment advice. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
