[OJB-developers] Re: Wacky Question about JNDI
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2001-11-02 11:41:25
|
Hi Boris, Thanks for your interest in OJB. Boris Kuschel wrote: > > This is probably stange to ask here but somehow > appropriate. > I need a general mechanism for persistence with > load balancing support across Relational > databases, which is supported here, May be there is some misunderstanding here: OJB does support to have objects of different classes stored in different relational databases. OJB does NOT support a loadbalancing to store objects of the same class in different RDBMS. OJB does provide a loadbalancing on the OJB PersistenceBroker level. This loadbalanicing does only affect the OJB middleware, but not the backend databases! >and for > Directories as well. > So my question is, is it possible to (easily) > plug in JNDI support into this bridge? OJB does support JNDI lookup of datasources. But I guess that's not what you are looking for? If get you right you want a mechanism that allows you to store objects either in an RDBMS or in a directory service. ANd then to retrieve objects from this media transaparently for a client app? That is your app for example just asks: give me all customer objects where customer.address.city='London'. The application does not see whether objects are stored in LDAP or in an RDBMS. Is this your requirement? If so I have good news for you. My company has used the OJB ojb.broker.query package to write a query adapter to LDAP that uses the same query api as for RDBMS access! I'm not sure about your load balancing requirements. You should provide some more details on this HTH, Thomas > I need a > general mechanism for persistence with load > balancing support and all thoses nifty things > supported here. > > Thanks for any help, > > Boris Kuschel |