RE: DB Localization

2004-01-29 Thread Graham Lounder
I've solved my problem. I now optionally set a locale object on my base DAO class. If the locale is not null, I add a PBLifeCycleListener to add the locale to my VO object after a lookup. Then in my VO object, I have functions like: public String getName() { String returnValue = !!!LOCALE

RE: properly way to lookup a java.sql.Connection from the connection pool

2004-01-29 Thread Hennebelle
Hi, I don't know if this method is well but I use it : ClassDescriptor classD = broker.getClassDescriptor(DualBO.class); JdbcConnectionDescriptor jcd = classD.getConnectionDescriptor(); //Creation of the connection java.sql.Connection connection = null; try { //Initialisation of the JDBC

[PB API] concurrency problems

2004-01-29 Thread Sven Efftinge
Hi, I just got some errors when using/retrieving the same persistentobjects in multiple threads (request cause it's a webapp). I tried many different configurations for class-descriptor, reference-descriptor, ... but the problem was still there. At the moment I only have proxy=dynamic specified

Re: Using VerifyMappingTask

2004-01-29 Thread Tino Schöllhorn
Hello Armin, is there another way to verify the mappings which is not outdated? regards, Tino Armin Waibel wrote: Hi Tino, the VerifyMappingsTask is a little bit outdated, thus I don't know if you will get an adequate result. regards, Armin Tino Schöllhorn wrote: Hi, I want to

Re: [PB API] concurrency problems

2004-01-29 Thread Armin Waibel
Hi Sven, I don't know if your problem rely on a concurrency problem. Between rc4 and rc5 I changed handling of DB resources in RsIterator class. Now OJB is very strict in closing used resources. All resources will be released when - PB instance was closed - PB commit call is done - PB abort

Re: Using VerifyMappingTask

2004-01-29 Thread Armin Waibel
Hi Tino, Tino Schöllhorn wrote: Hello Armin, is there another way to verify the mappings which is not outdated? Since version 0.97 OJB is more strict in reading repository metadata, e.g. OJB try to obtain a Class object for class specified in class-descriptor when reading repository file.

Re: Do I need to create reference objects when storing object?

2004-01-29 Thread Jurica Viskovic
THANKS! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PB API] concurrency problems

2004-01-29 Thread Sven Efftinge
Hi Armin, I wrote a test for this, now. Unfortunately I wrote it against my application, because I haven't installed the OJB test suite yet ;( The test starts n threads. Each thread creates a PersistentBroker, retrieves 4 instances of an entity and then checks some references for each entity.

Status on 1.0 release?

2004-01-29 Thread Clute, Andrew
I haven't seen any talk recently on the list about the progress for when the 1.0 release will be labeled. Is there a plan now for when that might happen? Are there certain bugs outstanding that are keeping this from happening that we can help chip into fix? I will admit my curiosity is for a

Re: complex joins

2004-01-29 Thread monish
Reading the docn I suspect QueryCustomizer should be used when the join criteria is anything other than equality (like , ) Can someone point me to the place to look examples for this. thanks - To unsubscribe, e-mail:

Re: [PB API] concurrency problems

2004-01-29 Thread Sven Efftinge
I just changed ObjectCacheClass from DefaultImpl to EmptyImpl. Without caching the test doesn't fail. I think this happens because the threads don't have to share the objects in this case. Sven Sven Efftinge wrote: Hi Armin, I wrote a test for this, now. Unfortunately I wrote it against my

ObjectCacheEmptyImpl.java

2004-01-29 Thread lasse . lambrecht
Hi, while running the OJB testcases I got a lot of circular problems when using the ObjectCacheEmptyImpl (no Cache). I'm using RC5 and saw, that the class is empty. Unlike in RC4 where there is code in this class. I checked the CVS and since version 1.9 it's empty. Whats the reason for this and

Re: ObjectCacheEmptyImpl.java

2004-01-29 Thread Armin Waibel
Hi Lasse, [EMAIL PROTECTED] wrote: Hi, while running the OJB testcases I got a lot of circular problems when using the ObjectCacheEmptyImpl (no Cache). I'm using RC5 and saw, that the class is empty. Unlike in RC4 where there is code in this class. I checked the CVS and since version 1.9 it's

Re: [PB API] concurrency problems

2004-01-29 Thread Sven Efftinge
Hi Armin, I just figured out that you were right. The problem I had occured because I tried to access not yet loaded proxy references after closing the broker. But what happens in my test? Does this occur because OJB sets auto-retrieve to false sometimes? Ho can we handle such a behaviour?

Re: ObjectCacheEmptyImpl.java

2004-01-29 Thread Edson Carlos Ericksson Richter
I have same problem. Actually, I'm using a per-object cache where the problem is detected. It's not a solution, but a workaround. Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 -

Project start failed with Exception java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException

2004-01-29 Thread Sven Alisch
Hello ML, I'am an absolute newbie with OJB. I finished installing. I use the ojb-blank project as a template and try to compilate the following example: class INSTITUT { public INSTITUT(String name) { iNST_NAME = name; } private Integer iNST_NR;

Re: ObjectCacheEmptyImpl.java

2004-01-29 Thread Edson Carlos Ericksson Richter
Well, it's boring get beginners programmers around me sayind hey, OJB doesn't work!!!, and all times I need to tell them that is just because they are making a bad modelling desing making two-way navigational references in all objects (kidding)... I think it's not an priority, because it can be

Update with customized WHERE

2004-01-29 Thread Edson Carlos Ericksson Richter
I want make following: 1) get an object from database 2) set a field in this object to the IP of station 3) update the object, but only IP still null (if another station reserves the record, it should not be updated) 4) get the object again, and check if the change proceeded Is there any

Re: [PB API] concurrency problems

2004-01-29 Thread Armin Waibel
Hi Sven, I can reproduce your problem. It's a really nasty concurrency materialization problem when using global/shared caches and an object was materialized first time: Say we have a class Account with reference to Buyer, Buyer has a reference to Address and Address has a reference to

RE: [PB API] concurrency problems

2004-01-29 Thread Clute, Andrew
Maybe I am missing somethingbut why not wait until the entire tree (collections and references) has been materialized before pushing the object on the cache? Or, is there a problem with circular references by doing that? -Andrew -Original Message- From: Armin Waibel

Joins

2004-01-29 Thread Ankur Gupta
I am trying to run a direct SQL query using OJB and not sure how to make it work. The query I am trying to run is a join of 2 classes. I haven't specified any join mappings in the repository file. Want to do this manually. Can you please provide me an example on how to do this specific thing?

Re: [PB API] concurrency problems

2004-01-29 Thread Antonio Gallardo
Armin Waibel dijo: Hi Sven, I can reproduce your problem. It's a really nasty concurrency materialization problem when using global/shared caches and an object was materialized first time: Solution is to set attribute 'refresh=true' in all reference-descriptor. This force OJB to lookup

RE: [PB API] concurrency problems

2004-01-29 Thread Clute, Andrew
I realized about 5 minutes after I sent this that it *would* in fact cause circular reference problems. So, that wouldn't work. This is a pretty tricky issue. The other solution I had would be to 'soft' commit the parent object to the cache until the entire map below it is materialized, and then

Re: Pbm on MtoNCollectionPrefetcher

2004-01-29 Thread Jakob Braeuchi
hi thierry, the problem is now solved in the trunk. see http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5259 hth jakob Thierry Hanot wrote: Hello Thanks for the link , But in the discussion , there is no solution , it just say that we need to convert Jdbc types ... Any guess about

Re: Report Queries

2004-01-29 Thread Jakob Braeuchi
hi luis, could you please provide the generated sql ? jakob Luis Tiago wrote: Hi, I'm having problems doing report queries. The results are not what I expect. I do not know what I'm doing wrong! Exemple: I have these records in database, table movements MOVEMENTID | USERID | COPYID |

Re: [PB API] concurrency problems

2004-01-29 Thread Armin Waibel
Hi again, sorry, this make things better, but does not really solve the problem. regards, Armin Armin Waibel wrote: Hi Sven, I can reproduce your problem. It's a really nasty concurrency materialization problem when using global/shared caches and an object was materialized first time: Say we

TorqueRepositoryGenerator

2004-01-29 Thread Guillaume Nodet
I'm trying to use the TorqueRepositoryGenerator but the tables are not sorted and so the sql script generated by torque fails because foreign keys are created before the referenced tables. In fact, my class descriptors in the repository are well sorted, but as the TorqueRepositoryGenerator uses a

Re: [PB API] concurrency problems

2004-01-29 Thread Armin Waibel
Hi Sven, Sven Efftinge wrote: Hi Armin, I wrote a test for this, now. Unfortunately I wrote it against my application, because I haven't installed the OJB test suite yet ;( The test starts n threads. Each thread creates a PersistentBroker, retrieves 4 instances of an entity and then checks

I got 2 to 4 copies of the same mail?

2004-01-29 Thread Antonio Gallardo
Hi: Since 2 or 4 days ago I am receving from 2 to 4 copies of the same mail of this maillist. Is just happen to me or anyone else is experimenting the same problem? Best Regards, Antonio Gallardo - To unsubscribe, e-mail:

Re: properly way to lookup a java.sql.Connection from the connection pool

2004-01-29 Thread Armin Waibel
Hi Christopher, Christopher Tava wrote: dear ojb user group, could you kindly tell me the properly way to look a connection from the connection pool? i have used the following call, but i get a socked closed exception. Connection conn = pBroker.serviceConnectionManager().getConnection();

Simple 1:n mapping question

2004-01-29 Thread Rick Banerjee
Hi Everybody, I have a 1:n relationship between Person Application tables. I have Person Application valueobjects representing the tables respectively. I want to search on the join of these tables with criteria pertaining to both tables. In the Person value object I have a Collection

[Fwd: Fw: Can anyone help me with this Join question?]

2004-01-29 Thread Thomas Mahler
Original Message Subject:Fw: Can anyone help me with this Join question? Date: Thu, 29 Jan 2004 08:43:49 -0800 From: Jay Xu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Tom, I saw your posting quite frequently on the board. So maybe you can help me on this or send

RE: Project start failed with Exception java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException

2004-01-29 Thread Ron Gallagher
Sven -- The problem is found in the stack trace: JGeo2] Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException You need to ensure that the commons-lang jar file is in your class path. Check out