Re: Configurable interface for LockManagers
Armin Waibel <[email protected]>
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Bruno, Bruno CROS wrote: > Hello, > > While waiting for the 1.0.5 release, which files should i get in CVS to > get LockManagerRemoteImpl work? > Try to check out ...odmg.locking.LockManagerFactory from SVN (OJB_1_0_RELEASE branch) or copy code from http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/locking/LockManagerFactory.java?view=markup I'm not sure if this is backward compatible with 1.0.4 - give it a try. Then all user defined LockManager implementations should be initialized. A howto about using LockManagerRemoteImpl can be found here http://db.apache.org/ojb/docu/guides/lockmanager.html#Locking+in+distributed+environment regards, Armin > Thanks Armin > > > > > > > On 1/28/06, Armin Waibel <[email protected]> wrote: >> >> Hi, >> >> is fixed in SVN and will be included in upcoming 1.0.5 maintenance >> release. >> >> regards, >> Armin >> >> Armin Waibel wrote: >> > Armin Waibel wrote: >> >> A workaround will be to configure once LockManagerRemoteImpl by hand >> >> before the first use of odmg-api: >> >> >> >> LockManager lm = LockManagerFactory.getLockManager(); >> >> if(lm instanceof Configurable) >> >> { >> >> Configurator configurator = OjbConfigurator.getInstance(); >> >> configurator.configure((LockManager)lm); >> >> } >> >> >> > >> > Sorry this doesn't work, because the LockManagerFactory always wraps >> > LockManager instances with LockManagerOdmgImpl. >> > >> > I try to fix the LockManagerFactory bug till tomorrow - stay tuned. >> > >> > regards, >> > Armin >> > >> > >> > >> >> HTH >> >> regards, >> >> Armin >> >> >> >> >> >>> >> >>> --Phil >> >>> >> >>> >> >> >> >> --------------------------------------------------------------------- >> >> 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] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >