You could use

        broker = PersistenceBrokerFactory.defaultPersistenceBroker();


 if you only want to connect from the default connection (and if you
only has one connection configured).


Ricardo.


-----Mensaje original-----
De: Lennart Benoot [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 18 de febrero de 2003 16:18
Para: [EMAIL PROTECTED]
Asunto: OJB Setup


Hi All,

While trying to setup ObJectRelationalBridge, I created a test project and 
copied all necesary files from the example in test1. Everything was very 
clear. Then I copied code from tutorial 1:


     try
     {
         broker = PersistenceBrokerFactory.
                     createPersistenceBroker(new PBKey("repository.xml"));
     }


This failed over and over again. After half a day I started reading the 
code. In PBKey.java it came to my attention that the filename 
"repository.xml" is not the parameter expected. Instead it seems that it 
should be the name of the jdbc connection (jcd-alias). Am i right here?

regards,
Lennart 


---------------------------------------------------------------------
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]

Reply via email to