----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 11:15 AM
Subject: database name


> Hello,
>
> This is a beginner's question ...
> I am trying to use OJB with Oracle in a n-tiers application (with ODMG
> API).
> I can't open the database and I wonder if in :
>       db.open(databaseName, accessMode)

in the db.open(...) method you have to set the path to the repository
file which represents your DB.

> I should set databaseName to "repository.xml" or to a String like
> "databasename#username#password"

if you didn't declare a user and password in your repository file (see
the jdbc-connection-descriptor tag) it is possible to pass this
information at runtime by using a
"pathToRepository#username#password"
parameter in the db.open(...) method. But it is recommended to declare
user, password in the repository file and you will get into trouble
using this feature for the 'default' repository (your 'default' DB).

HTH,
Armin

> or to something else ?
>
> Thanks for help,
> Edith.
>
>
>
>
>
> ----------------
>
> Les donnees et renseignements contenus dans ce message sont
personnels, confidentiels et secrets. Ce message est adresse a
l'individu ou l'entite dont les coordonnees figurent ci-dessus. Si vous
n'etes pas le bon destinataire, nous vous demandons de ne pas lire,
copier, utiliser ou divulguer cette communication. Nous vous prions de
notifier cette erreur a l'expediteur et d'effacer immediatement cette
communication de votre systeme.
>
> The information contained in this message is privileged, confidential,
and protected from disclosure. This message is intended for the
individual or entity adressed herein. If you are not the intended
recipient, please do not read, copy, use or disclose this communication
to others ;also please notify the sender by replying to this message,
and then delete it from your system.
>
>
> --
> 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]>

Reply via email to