You can try instantiate broker this way:
PBKey pbKey = new PBKey("default");
broker = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
where "default" - jcd-alias property value in jdbc-connection-descriptor.
Regards,
Mykola Ostapchuk
----- Original Message -----
From: "Durham David Contr 805 CSS/SCBE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 3:14 PM
Subject: creating persistence broker
Hi all,
This is a newbie question.
I'm trying to execute the following code:
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
I receive the following error:
java.lang.NoClassDefFoundError
at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(
Unknown Source)
Have the following in OJB.properties file:
PersistenceBrokerClass=org.apache.ojb.broker.core.PersistenceBrokerImpl
Any ideas what would cause this?
Thanks,
Dave
---------------------------------------------------------------------
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]