Hi David,

Which version of OJB do you use?
This was the behaviour before OJB
supports multiple database access
(I think since version 0.95 or 0.94).

regards,
Armin

----- Original Message -----
From: "David Corbin" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 9:44 PM
Subject: Name for repository.xml


> In org.apache.ojb.odmg.DatabaseImpl.open, the code reads:
>
> public void open(String name, int accessMode) throws ODMGException
>     {
>         PersistenceBroker broker = null;
>         try
>         {
>             // Get a Persistence Broker instance, to load repository
>                 broker =
> PersistenceBrokerFactory.defaultPersistenceBroker();
>                 broker.open(name,null,null);
>         }
>         catch (Throwable ex)
>         {
>             throw new DatabaseNotFoundException("OJB can't open
> repository " + name + "\n"
>                     + ex.getMessage());
>         }
>         finally
>         {
>             if (broker != null)
>             {
>                 broker.close();
>             }
>         }
>     }
>
>
> If I pass in a name other than "repository.xml",  I get an exception
> that it can't find repository.xml.
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ojb-user-help@;jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to