Re: What are Transaction limits with autoupdate = true.?

2005-04-20 Thread Alessandro Colantoni
Hi Change are really written to the database. I get an error of MsSQLServer. On 4/19/05, Armin Waibel [EMAIL PROTECTED] wrote: Hi, are the changes really writen to database or is it a caching issue? regards, Armin Alessandro Colantoni wrote: Hi all!. In a mehod i have the

problem with concurrent access to ObjectCacheDefaultImpl

2005-04-20 Thread David . WIESZTAL
Hi Armin, I'm writing an application using session beans and Ojb, and deploy on Jboss in development and on WebLogic in prod. I'm facing problems with ObjectCacheDefaultImpl when the application is heavily used in prod. It seems that the synchronized statement in the cache does not behave

Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Stefan Walkner
hello, I use Mapping Classes on Multiple Joined Tables to map an Object which inherits from another into two tables. BUT: is there a way to get the different objects back, when querying? I mean, I have following mappings: -- class-descriptor

Re: PB-API: retrieval of collection of objects with inheritance

2005-04-20 Thread Armin Waibel
Jakob Braeuchi wrote: hi armin, is this testcase already available ? Will check in the test ASAP. Currently do a complete refactoring of the each super class on different table mapping, so I use this test case only local. Armin jakob Armin Waibel schrieb: Hi Dima, I wrote a test based on your

Re: Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Armin Waibel
Hi Stefan, Stefan Walkner wrote: hello, I use Mapping Classes on Multiple Joined Tables to map an Object which inherits from another into two tables. BUT: is there a way to get the different objects back, when querying? I mean, I have following mappings: we start working on this issue. Hope till

Oracle sequences...

2005-04-20 Thread Bobby Lawrence
Why is it that when using the SequenceManagerNextValImpl, my sequence numbers are not consecutive? I see 2, 4, 6, 8... instead of 2, 3, 4, 5, ...? -- Bobby Lawrence MIS Application Developer Jefferson Lab (www.jlab.org) Email: [EMAIL PROTECTED] Office: (757) 269-5818

Re: problem with concurrent access to ObjectCacheDefaultImpl

2005-04-20 Thread Armin Waibel
Hi David, [EMAIL PROTECTED] wrote: Hi Armin, I'm writing an application using session beans and Ojb, and deploy on Jboss in development and on WebLogic in prod. I'm facing problems with ObjectCacheDefaultImpl when the application is heavily used in prod. It seems that the synchronized statement in

Re: What are Transaction limits with autoupdate = true.?

2005-04-20 Thread Armin Waibel
Hi, Alessandro Colantoni wrote: Hi Change are really written to the database. I get an error of MsSQLServer. in this case I assume that the problem wasn't caused by OJB, because between PB.beginTransaction() and PB.commitTransaction() it's guaranteed that OJB use the same connection. If you

Re: Oracle sequences...

2005-04-20 Thread Armin Waibel
Hi Bobby, Bobby Lawrence wrote: Why is it that when using the SequenceManagerNextValImpl, my sequence numbers are not consecutive? I see 2, 4, 6, 8... instead of 2, 3, 4, 5, ...? OJB obtain the sequence key before the object was inserted. If you do an rollback the keys are lost. Further on the

another Oracle issue

2005-04-20 Thread Bobby Lawrence
I have another issue. I have a Person object. This object has a reference to an Organization object. descriptors: class-descriptor class=org.jlab.mis.apps.mics.valueobjects.Person table=users field-descriptor name=id column=user_id jdbc-type=BIGINT primarykey=true autoincrement=true

Re: another Oracle issue

2005-04-20 Thread Bobby Lawrence
Well - I have traced this issue back to the sequences... It seems that OJB is inserting an Organization object with the even id, but the Person object gets the odd id: In the database: ORGANIZATION_ID ORGANIZATION_NAME --- - 692 JLAB From the Person class:

Re: another Oracle issue

2005-04-20 Thread Bobby Lawrence
Sorry - I had that wrong- Database: ORGANIZATION_ID ORGANIZATION_NAME --- - 692 JLAB From the Person class: org.jlab.mis.apps.mics.valueobjects.Person personsName='Bobby Lawrence' and organizationId='693' Bobby Lawrence wrote: Well - I have traced this

Re: Oracle sequences...

2005-04-20 Thread Bobby Lawrence
Crap - Nevermind - It seems that my database has triggers on it that insert the nextval from the sequence upon insert. So OJB determines the sequence, and then Oracle does the same thing. Thats why my sequences are being called twice... --Bobby Armin Waibel wrote: Hi Bobby, Bobby Lawrence wrote:

Re: another Oracle issue

2005-04-20 Thread Armin Waibel
Hi Bobby, when using a 1:1 reference OJB always first store the referenced object and then the main object. The internal rules used by OJB when storing a object are store all 1:1 references (if auto-update is enabled) store main object store 1:n, m:n references (if auto-update is enabled) Did

Re: Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Stefan Walkner
hello, we start working on this issue. Hope till next release this will be fixed. thank you for the info! I really was searching long and was not able to find any information about that, so I'm glad to hear any response from you. Thank you, stefan walkner

Re: Mapping Classes on Multiple Joined Tables

2005-04-20 Thread Armin Waibel
Stefan Walkner wrote: hello, we start working on this issue. Hope till next release this will be fixed. thank you for the info! I really was searching long and was not able to find any information about that, so I'm glad to hear any response from you. The issue is noted in the release-notes:

Re: Oracle sequences...

2005-04-20 Thread Martin Kalén
Bobby Lawrence wrote: It seems that my database has triggers on it that insert the nextval from the sequence upon insert. So OJB determines the sequence, and then Oracle does the same thing. Thats why my sequences are being called twice... Also beware of Oracle sequence caching if your

Re: What are Transaction limits with autoupdate = true.?

2005-04-20 Thread Martin Kalén
Alessandro Colantoni wrote: Change are really written to the database. I get an error of MsSQLServer. Beware that MySQL using MYISAM storage in early versions [*] does not implement database transactions. Either use InnoDB if your licensing requirements permit it or try to upgrade to a newer MySQL

Re: Error invoking method (IndirectionHandler)

2005-04-20 Thread Martin Kalén
Lemke, Wesley wrote: Anyone have any luck setting up p6spy with Websphere 5.1? This is kind of on-topic because Thomas suggested I try it for debugging the OJB issue. Anyone familiar with this error: [4/15/05 10:07:48:319 CDT] 68779cc2 FreePool E J2CA0046E: Method

Tomcat 5.5.9 and OJB?

2005-04-20 Thread jeichels
Hey all, When I run OJB 1.0.3 with Tomcat 4.1.30 everything works. When I upgrade to Tomcat 5.5.9 I am getting the exception at the bottom of the file. Any ideas why this might be happening? Ideas on how to fix it? In general I am trying to upgrade my libraries because I am having problems