Hi, > In the same vein, is it possible to use different metadata (repository.xml) > for different connections, dynamically?
sorry, currently not directly. It's only possible to change metadata per thread or global at runtime. But this should be sufficient to implement a per connection solution. It is also possible to load additional class-descriptor (repository files) at runtime and merge it with the main repository. regards, Armin > > > > > ----- Original Message ----- > > From: "Armin Waibel" <[EMAIL PROTECTED]> > > To: "OJB Users List" <[EMAIL PROTECTED]> > > Sent: Thursday, March 20, 2003 11:39 PM > > Subject: Re: OJB + Custom connection > > > > > > > Hi Edson, > > > > > > hope I don't misunderstand you, > > > > > > > I wan't to use a "user authenticated" database connection, not one > > > open with > > > > general credentials... > > > Do this mean you want pass user/password at runtime? > > > No problem, see FAQ "Many different database user - How do they > login?" > > > > > > OR > > > > > > > Isto possible to open external connection and then configure OJB > to > > > use it > > > Do you mean to pass the complete connection properties at runtime? > > > No problem, before the first use of PBF use the MetadataManager and > > > add a JdbcConnectionDescriptor (contain all connection info). > > > > > > OR > > > > > > Do you mean you get the real connection by an external process and > > > you want to use this connection within OJB? > > > No problem, implement your own > > > org.apache.ojb.broker.accesslayer.ConnectionFactory and let OJB > > > use it. > > > > > > HTH > > > regards, > > > Armin > > > > > > ----- Original Message ----- > > > From: "Edson Carlos Ericksson Richter" > > > <[EMAIL PROTECTED]> > > > To: "'OJB Users List'" <[EMAIL PROTECTED]> > > > Sent: Thursday, March 20, 2003 11:40 PM > > > Subject: OJB + Custom connection > > > > > > > > > > Hi! > > > > > > > > Isto possible to open external connection and then configure OJB > to > > > use it > > > > (not the one in repository.xml - in real, is better if I don't > need to > > > > configure > > > > connection in repository.xml, besides I think this is not > possible). > > > > > > > > I wan't to use a "user authenticated" database connection, not one > > > open with > > > > general credentials... > > > > > > > > Thanks, > > > > > > > > Edson Richter > > > > > > > > > > > > > > > > --- > > > > Outgoing mail is certified Virus Free. > > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > > Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003 > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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]
