The configuration for multiple databases does *work* when not in client/server mode. I'll see if I can come up with a patch.
-----Original Message----- From: Corey Klaasmeyer [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 4:25 PM To: 'OJB Users List' Subject: RE: [Multiple Databases][Repository] Not Selecting the Correct Dr iver... The configuration for multiple databases does when not in client/server mode. I'll see if I can come up with a patch. Thanks, Corey -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 4:14 PM To: OJB Users List Subject: Re: [Multiple Databases][Repository] Not Selecting the Correct Driver... Hi Corey, the Client/Server stuff is the special subject of Thomas - I'm not familiar with that stuff (delegate if possible ;-)). But I think you have located the error. Nevertheless it would be a great thing to have a 'Multiple database' documentation patch ;-) regards, Armin > That should repositoryPostgreSQL_user.xml in the last post... > > After looking at the server source, it seems the server only handles one > repository. Is this correct, i.e. only one database can be used in > client/server mode? > > In order to support this functionality, it looks like you could add a > repository property to request and overload getFreeBrokerId() and in > RequestProcessor make the following change: > > ... > PersistenceBroker broker = null; > if (needBroker) > { > if (brokerId == -1) { > String repository = request.getRepository(); > brokerId = brokerpool.getFreeBrokerId(repository); > } > broker = brokerpool.getBrokerById(brokerId); > } > ... > > Of course, you would have to allow for multiple repository files on the > server side. Or, am I missing something? If not, I would be happy to make > these changes and submit a patch. > > Corey > > -- > 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
