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

2005-02-01 Thread Łukasz Korzybski
such transactions, I use JNDI. I just wonder if it is possible to do such spanning across servlets, I read a lot of mailing list archives but did not found answer. Best regards. -- -- Łukasz Korzybski, [EMAIL PROT

removing from cache after ODMG commit affects transaction

2005-02-01 Thread Łukasz Korzybski
ommit() which should store changes in DB, then in my understanding anything I put after point 2 should not affect my transaction. Regards. -- -- Łukasz Korzybski, [EMAIL PROTECTED] - To unsubscribe, e

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

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

Persistent Broker cache impl with ODMG tx

2005-02-01 Thread Łukasz Korzybski
d when the first odmg-tx returns PB to the pool. Should I explicitly invoke close() on PB? Regards -- ------ Łukasz Korzybski, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: write locking

2005-01-30 Thread Łukasz Korzybski
But then in that DAO I should use tx.markDirty() or tx.lock(obj, WRITE) ? Łukasz Korzybski. Dnia niedziela, 30 stycznia 2005 19:57, Thomas Dudziak napisał: > Why do you give the object to OJB so early ? The usual routine of > using OJB in a webapp would be something like this: > >

Re: write locking

2005-01-30 Thread Łukasz Korzybski
like that :/ Thanks for helping. Łukasz Korzybski Dnia niedziela, 30 stycznia 2005 19:57, Thomas Dudziak napisał: > Why do you give the object to OJB so early ? The usual routine of > using OJB in a webapp would be something like this: > > * interact with user, e.g. fill object

odmg question

2005-01-30 Thread Łukasz Korzybski
Sorry I did mean not to remove write lock but to make persistent object (which was made by write lock) to be transient - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

odmg question

2005-01-30 Thread Łukasz Korzybski
Is it possible to remove write lock from object? Is there any possibility to check if object is transient or persistent? Łukasz Korzybski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: write locking

2005-01-29 Thread Łukasz Korzybski
I have problems making my design easy and fast in using to the presentation's layer programmer mainly because write lock is equal to store object, i have no idea how to solve such problems as one mentioned above in elegant manner , it is a bit tricky. -

write locking

2005-01-29 Thread Łukasz Korzybski
something else Łukasz Korzybski. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: storing unidirectional 1:n

2005-01-28 Thread Łukasz Korzybski
Dnia piątek, 28 stycznia 2005 18:29, Łukasz Korzybski napisał: In last post I didn't mention that the Person class have additional 1:1 reference to the Address class, it points to one distinguished main address. /** * @ojb.reference class-ref="Address" *

storing unidirectional 1:n

2005-01-28 Thread Łukasz Korzybski
Is there any solution for this? Or do I have to make it bidirectional and explicitly in code set the person object as address's parent when adding address to the person? Łukasz Korzybski. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: starting ojb

2004-12-10 Thread Łukasz Korzybski
Dnia piątek, 10 grudnia 2004 10:26, [EMAIL PROTECTED] napisał: Hi, Did you put repository.dtd file into this folder? Regards. > I have always the same problem. I have put the needed xml files in the > folder where my application is. but there is the same mistake. > > [JDO] DEBUG: OjbStoreConne

OJB web application netbeans 4 project

2004-12-06 Thread Łukasz Korzybski
Hi, I've integrated nicely ojb with xdoclet and torque into netbeans webapp project. Torque build file, configurations etc. are taken from ojb_blank. Is possible to run steup-db and xdoclet targets from netbeans directly, also all files needed by OJB are packaged by netbeans to war file. I l

Re: read locking

2004-12-02 Thread Łukasz Korzybski
Dnia czwartek, 2 grudnia 2004 19:26, Łukasz Korzybski napisał: > Hi, > > Does OJB aquire read lock on object automatically when it's retrived from > database? > > Regards. Ok I found that it can be set with ODMG, what a

read locking

2004-12-02 Thread Łukasz Korzybski
Hi, Does OJB aquire read lock on object automatically when it's retrived from database? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: OJB in Tomcat

2004-11-25 Thread Łukasz Korzybski
What a terrible mistake I made, I've forgotten to include repository.dtd !! I realized that when I removed OJB.properties from classes directory and I got different error (new error was exactly telling that OJB.properties is missing). Now everything runs. Anyway thanks a lot for help. Best Re

Re: OJB in Tomcat

2004-11-25 Thread Łukasz Korzybski
Dnia czwartek, 25 listopada 2004 12:39, Edson Carlos Ericksson Richter napisał: > Have you tryied NetBeans 3.6? I'm using OJB without problems, in > standalone and web apps with 3.6. I know NetBeans 4 B2 has some flaws in > this area... I think you test latest Q build too.. > > Richter Ok I will

Re: OJB in Tomcat

2004-11-25 Thread Łukasz Korzybski
Dnia czwartek, 25 listopada 2004 12:32, Thomas Franke napisał: > Łukasz Korzybski wrote: > > Is anyone have a idea why ojb 1.0.1 doesn't see configuration files which > > are directly in WEB-INF/classes? I am fighting with it all day and I am > > not able to make it wor

OJB in Tomcat

2004-11-25 Thread Łukasz Korzybski
Hi all, Is anyone have a idea why ojb 1.0.1 doesn't see configuration files which are directly in WEB-INF/classes? I am fighting with it all day and I am not able to make it work, I use tomcat 5 embedded in Netbeans 4, I will download today tomcat and make alone installation and try with it. W

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-23 Thread Łukasz Korzybski
Dnia wtorek, 23 listopada 2004 19:30, Ilias Lazaridis napisał: Unbelievable - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Java class for ordering SQL statements in ODMG to avoid FK violations

2004-11-18 Thread Łukasz Korzybski
Dnia czwartek, 18 listopada 2004 14:54, Gerhard Grosse napisał: > Hi, > ... >The ObjectEnvelopeOrdering class uses a graph-theoretical approach to order >the >object envelopes (see the JavaDoc for details). Edges in this graph are >inserted >only if there really is a need for ordering two object

Re: [QUICKSTART] - A OJB quickstart similar to hibernate

2004-11-14 Thread Łukasz Korzybski
Dnia niedziela, 14 listopada 2004 21:29, Thomas Dudziak napisał: > Ilias Lazaridis wrote: > > Jakob Braeuchi wrote: > >> hi ilias, > >> > >> any help will be really appreciated. > > > > ok, very nice. > > > >> i do not know netbeans but i try to run the tutorial1.Application from > >> within eclips

Re: ODMG - delete referenced objects.

2004-11-14 Thread Łukasz Korzybski
Dnia czwartek, 11 listopada 2004 13:49, Gerhard Grosse napisał: > On Wed, 10 Nov 2004 21:26:22 +0100, Grzegorz Pypec <[EMAIL PROTECTED]> > > wrote: > > Instead of tx.checkpoint() you can use ((TransactionExt) tx).flush(), > which flushes all SQL to the DB without commit. > > However, normally OJB

Re: ODMG questions

2004-11-10 Thread Łukasz Korzybski
Dnia środa, 10 listopada 2004 10:02, Gerhard Grosse napisał: > On Wed, 10 Nov 2004 01:51:59 +0100, Łukasz Korzybski <[EMAIL PROTECTED]> > > wrote: > >Thanks for reply, > > > >Dnia środa, 10 listopada 2004 00:19, Justin Stanczak napisał: > >> Justin Stanc

Re: ODMG questions

2004-11-09 Thread Łukasz Korzybski
Thanks for reply, Dnia środa, 10 listopada 2004 00:19, Justin Stanczak napisał: > Justin Stanczak, Web Manager > Vincennes University > 812-888-5813 > > > "All that is necessary for the triumph of evil is that good men do > nothing." Edmund Burke > >>1. in Basic O/R mapping I've read that in O

ODMG questions

2004-11-09 Thread Łukasz Korzybski
Hello, I'm currently learning OJB, we are going to use it for our web app. I've got some unresolved questions 1. in Basic O/R mapping I've read that in ODMG default auto-update is set to false which is link. I read that in this case ODMG will not insert nor update my collection objects if i d