Hi again, Armin,

I just want to note that if you remove the possibility of using null in the db.open method then there is no reason to have a default-connection attribute in the jdbc_connection_descriptor tag. Every database would have to be opened by name, so there's no point in a default.

Regards, Will

Armin Waibel wrote:
Hi Will,

take a look in the release-notes.txt to see
what has changed.

Seems a configuration problem.
Say you have declared a jdbc-connection-descriptor
in repository_database.xml like this one below.

Then you could obtain PB instances
1.
PBKey key = new PBKey("default","sa","test");
broker = PBF.createPersistenceBroker(key);

2. You set this descriptor as default-connection
broker = PBF.defaultPersistenceBroker();

ODMG-api
Database db = odmg.newDatabase();
db.open("default#sa#test");
or, if a default-connection was declared
db.open(null); (this possibility maybe removed - security reasons)


<jdbc-connection-descriptor
     jcd-alias="default"
     default-connection="true"
     platform="Hsqldb"
     jdbc-level="2.0"
     driver="org.hsqldb.jdbcDriver"
     protocol="jdbc"
     subprotocol="hsqldb"
     dbalias="../OJB"
     username="sa"
     password="test"
     batch-mode="false"
     >

        <connection-pool
            maxActive="21"
            validationQuery="" />

        <sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImp
l">
            <attribute attribute-name="grabSize" attribute-value="20"/>
        </sequence-manager>
   </jdbc-connection-descriptor>

HTH

regards,
Armin

----- Original Message -----
From: "Will Jaynes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 2:34 PM
Subject: problem moving to 0.9.9



I'm trying to upgrade one of my applications to the latest from CVS.
It

has been working with 0.9.7. I upgraded
- repository.xml
- repository_internal.xml
- repository.dtd
- the ojb jar file
- replaced commons-lang.jar with new commons-lang-1.0-mod.jar that
comes

in CVS

Now I get an exception I don't understand:

[org.apache.ojb.broker.metadata.ConnectionRepository] INFO: Could not
found org.apache.ojb.broker.metadata.JdbcConnectionDescriptor for
alias

'org.apache.ojb.broker.PBKey: repository=repository.xml, user=null,
password=null'
[org.apache.ojb.broker.accesslayer.ConnectionManagerFactory] ERROR:
ConfigurableFactory instantiation failed for class class
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
* Factory types:
1 - Type: org.apache.ojb.broker.PersistenceBroker
* Factory arguments:
1 - Argument:
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl@18d9850

What has changed and what more must I do to upgrade.

Thanks for any info,
Will


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


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to