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 Mark Rowell <Ma...@credittrade.com> on 2003/03/27 17:00:19 UTC

OJB and getting a PersistenceBroker instance for a second non-def ault database

Hi

I know I can get a default PB instance using defaultPersistenceBroker on
PBFactory and that for a second database I can get a broker if I specify the
alias and the userID and password
to use for the second repositiry, but is there a way of getting a broker
instance for the second database whereby it picks up the userID and password
specified in the repository file?

I tried the single argument constructor for PBKey but no joy.

Thanks

Mark

----------------------------------------------------------------
Mark Rowell
CreditTrade

T: +44 (020) 7400 5078
M: mailto:mark.rowell@credittrade.com

CreditTrade Limited is regulated by the FSA. (c) 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 CreditTrades 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.

Re: OJB and getting a PersistenceBroker instance for a second non-default database

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Mark,

> I tried the single argument constructor for PBKey but no joy.
this should be possible, could you post an example and
the resulting stack trace?

regards,
Armin

----- Original Message -----
From: "Mark Rowell" <Ma...@credittrade.com>
To: <oj...@db.apache.org>
Sent: Thursday, March 27, 2003 5:00 PM
Subject: OJB and getting a PersistenceBroker instance for a second
non-default database


> Hi
>
> I know I can get a default PB instance using defaultPersistenceBroker
on
> PBFactory and that for a second database I can get a broker if I
specify the
> alias and the userID and password
> to use for the second repositiry, but is there a way of getting a
broker
> instance for the second database whereby it picks up the userID and
password
> specified in the repository file?
>
> I tried the single argument constructor for PBKey but no joy.
>
> Thanks
>
> Mark
>
> ----------------------------------------------------------------
> Mark Rowell
> CreditTrade
>
> T: +44 (020) 7400 5078
> M: mailto:mark.rowell@credittrade.com
>
> CreditTrade Limited is regulated by the FSA. (c) 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
CreditTrades 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: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>