span odmg tx across servlets. when odmg transaction does release db connection?

2005-02-01 Thread Łukasz Korzybski
Hi again, Does anybody know when odmg transaction does release underlying db connection after retrieving data with OQL or associated PB? Or how tell it to close connection? Or maybe it can be configured somehow? I thought that I can span odmg transaction across servlets But when I do that, and

removing from cache after ODMG commit affects transaction

2005-02-01 Thread Łukasz Korzybski
Hello, I have noticed strange behaviour, It occurs every time. I use DefaultCacheImpl and implicit write locking. I do something like this: 1. tx.begin (odmg trans) retrieve object remove the object from cache modify the object (insert into it's list new sub objects)

Inheritance problem with association...

2005-02-01 Thread Wesley Lemke
We have a a problem with OJB assigning incorrect id's. This is the situation: public class PayrollDeductionPlan { Long id; String genericInfo = "Generic"; // List of PayPlanAssociations List assocs = new ArrayList(); } public class ClientPayrollDeductionPlan e

Re: Persistent Broker cache impl with ODMG tx

2005-02-01 Thread Brian McCallister
No worries =-) -Brian On Feb 1, 2005, at 9:33 AM, Łukasz Korzybski wrote: Dnia wtorek, 1 lutego 2005 12:40, Łukasz Korzybski napisał: My mistake sorry, repository_database.xml has overriden settings in OJB.properties. Once more sorry for spamming :) Łukasz Korzybski

Re: Persistent Broker cache impl with ODMG tx

2005-02-01 Thread Łukasz Korzybski
Dnia wtorek, 1 lutego 2005 12:40, Łukasz Korzybski napisał: My mistake sorry, repository_database.xml has overriden settings in OJB.properties. Once more sorry for spamming :) Łukasz Korzybski - To unsubscribe, e-mail: [EMAIL

Re: Persistent Broker cache impl with ODMG tx

2005-02-01 Thread Łukasz Korzybski
Dnia wtorek, 1 lutego 2005 12:47, Łukasz Korzybski napisał: I forgot to say that after the modyfing odmg-tansaction is aborted then the other starts to see proper, unmodified data, so the cache seems to be cleared. I have just added broker.clearCache() after line which is retrieving modifiabl

Re: Persistent Broker cache impl with ODMG tx

2005-02-01 Thread Łukasz Korzybski
Dnia wtorek, 1 lutego 2005 12:40, Łukasz Korzybski napisał: It is strange because in doc I found "So no dirty reads will occur, because each thread use it's own PersistenceBroker instance." I have opened two web browsers each have different session, different odmg-transaction, I don't store any

Persistent Broker cache impl with ODMG tx

2005-02-01 Thread Łukasz Korzybski
Hello, I have question regarding per PersistentBroker cache implementation in ojb-1.0.1 in Tomcat environment. I use ODMG transactions, and I have noticed that when I have two odmg transactions at the same time each in different thread, then one of them sees the other's not commited modificati