standalone getDefaultBroker auto-retrieve

2006-04-24 Thread Bruno CROS
Hi, It seems that read objects with a broker, can read related objects by auto-retrieve set to true despite broker is closed. I suppose that a getDefaultBroker is done, and the borrowed broker is never closed (because no reference on it). Note : This occurred because, application has been

Re: Question about two-level cache

2006-04-24 Thread Armin Waibel
Hi Eric, Westfall, Eric Curtis wrote: Hello, I'm wondering if anyone out there has experience using OJB's two-level caching. I am attempting to use a two-level cache to help speed up an application I'm working on and I'm noticing some issues that I'm curious about. It appears that, even if my

generate global uid's

2006-04-24 Thread Dennis Bekkering
Hello all, I have a situation where i frequently have to merge data from different databases. Uptill now every database has it's own sequence. That means that i cannot merge the data blindly because two records with the same id might not be the same record. I am thinking of switching from int

Returning DynaBeans

2006-04-24 Thread DenisP
I am interested in finding out more information about OJB's support of the commons-beanutils package. Is it possible to configure OJB to return instances of DynaBeans instead of instances of POJOs? This would greatly reduce the amount of code required to support our persistence layer ...

Re: generate global uid's

2006-04-24 Thread Thomas Mahler
Hi Dennis, org.apache.ojb.broker.util.GUIDFactory produces GUIDs that are unique across different VMs. cheers, Thomas Dennis Bekkering wrote: Hello all, I have a situation where i frequently have to merge data from different databases. Uptill now every database has it's own sequence. That

Re: Procedure based sequencence generator repeating values

2006-04-24 Thread Armin Waibel
Hi, I'm not a database expert, so please forbear with me ;-) Edson Carlos Ericksson Richter wrote: Hi! There is a very long time since my last problem with OJB - thank you guys, it's awesome how good work was done until now. In last month, I was migrating from Oracle to MS SQL, and changed

Re: standalone getDefaultBroker auto-retrieve

2006-04-24 Thread Armin Waibel
Hi Bruno, Bruno CROS wrote: Hi, It seems that read objects with a broker, can read related objects by auto-retrieve set to true despite broker is closed. I can't see what you mean. When OJB materialize an object with related objects and auto-retrieve is 'true', the full materialized object

Re: Procedure based sequencence generator repeating values

2006-04-24 Thread Edson Carlos Ericksson Richter
Armin Waibel escreveu: Hi, I'm not a database expert, so please forbear with me ;-) Edson Carlos Ericksson Richter wrote: Hi! There is a very long time since my last problem with OJB - thank you guys, it's awesome how good work was done until now. In last month, I was migrating from Oracle

Re: standalone getDefaultBroker auto-retrieve

2006-04-24 Thread Bruno CROS
Hi Armin, Here's is a schematic example : Consider a service method that returns an object ProductBean. ProductBean is not O/R mapped but the reading calls a second method that read O/R mapped Product object. Then, relations are followed, to find description of his Category (Consider that a