Kevin -- 

Because the stack trace that you provided includes references to code that's invoked 
when a new ConnectionManager is instantiated, I would have to conclude that your 
OJB.properties file either (a) does not specify a ConnectionManagerClass or (b) 
specifies an 'invalid' class for the ConnectionManagerClass.  My suggestion is to make 
sure your 'starting point' for the OJB.properties file is the version that corresponds 
to the version of OJB that you're using.  Then, just make any necessary changes.

Regarding accessing two databases....

You need to do do a few things:

1) Include in your repository.xml file a connection-descriptor for each database that 
you'll be accessing.  Be sure to specify a different jcd-alias for each.  Since you're 
working with two different database, the idea of a 'default' connection may not be 
appropriate.  If that's true, then don't include default-connection="true" on either 
connection-descriptor

2) When you call PersistenceBrokerFactory.createPersistenceBroker, specify the 
jcd-alias for the connection descriptor that you want to utilize, along with the user 
id and password.  Don't specify the name of the repository file.

Ron Gallagher
Atlanta, GA
[EMAIL PROTECTED]



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

Reply via email to