Re: Does OJB supports Geronimo?

2006-11-09 Thread Andreas Bohnert
environment with not further details. andreas Armin Waibel schrieb: Hi Andreas, Andreas Bohnert wrote: hi, I wonder if OJB supports Geronimo. I haven't found an TransactionManager in /org/apache/ojb/broker/transaction/tm, also I haven't found any geronimo topics in the mailing list

Does OJB supports Geronimo?

2006-10-13 Thread Andreas Bohnert
hi, I wonder if OJB supports Geronimo. I haven't found an TransactionManager in /org/apache/ojb/broker/transaction/tm, also I haven't found any geronimo topics in the mailing list or the documentation. Are there any Geronimo users here? I try to migrate from jboss to geronimo, but now I'm

Re: Out of Memory on Large ResultSets/Needed: SetFetchSize Method

2005-05-20 Thread Andreas Bohnert
Bleeding edge development for OJB v1.1+ is in CVS HEAD, but should also not be broken. OJB_1_0_RELEASE is maintenance for the last release OJB and is thus pre-1.0.4 at the moment. As a rule of thumb, OJB_1_0_RELEASE branch is currently as stable as v1.0.3 plus some bugfixes and new minor

Re: Out of Memory on Large ResultSets/Needed: SetFetchSize Method

2005-05-03 Thread Andreas Bohnert
hi martin, I have just run several tests with different hints. It works very well, however, if I don't set a hint, no cursors are used, even with getIteratorByQuery! But maybe that's not too bad. If you enable cursors on iterators by default, MySql users could run into troubles. I just found

Re: Proxy, Prefetching, Memory Usage

2005-04-18 Thread Andreas Bohnert
andreas, ojb selects all columns but creates proxies instead of fully materialized Article objects. what related object do you want to prefetch here ? jakob Andreas Bohnert schrieb: hi, may someone can help me with the proxies, please! everything works fine, prefetching works as it should, but when OJB

Re: Out of Memory on Large ResultSets/Needed: SetFetchSize Method

2005-04-15 Thread Andreas Bohnert
hello martin, thanks for your quick response!! I will re-run again and check peak JVM heap usage before/after and bring it up on the development list. with 115000 big data objects and fetchSize=0 (=default behavoir=without cursor) 97% memory of my jboss system was used (jboss with -Xmx512m)

Re: Out of Memory on Large ResultSets/Needed: SetFetchSize Method

2005-04-15 Thread Andreas Bohnert
ok, sorry. I see. this was an proposal to set the fetch size! :) Andreas Bohnert wrote: hi jakob, Jakob Braeuchi wrote: hi all, ojb supports proprietary start- and endIndex for queries. this solutions does not use fetch size or limit hints. but this does not affect the way jdbc selects

Out of Memory on Large ResultSets/Needed: SetFetchSize Method

2005-04-14 Thread Andreas Bohnert
Hi, Postgres (for example) don't use cursors on default. The PG jdbc driver loads the entire ResultSet all at once and keeps it in memory! So, even if you do a getIteratorByQuery the memory load on a large resultset is huge! You can get around this, if you set the fetchsize on the jdbc

Proxy, Prefetching, Memory Usage

2005-04-12 Thread Andreas Bohnert
hi, may someone can help me with the proxies, please! everything works fine, prefetching works as it should, but when OJB initially selects the oid's, it does select all fields instead of just the pk! let's say, there is a table 'Article' with 200 000 objects. I have written an Article Class,

AppServer: When does a Transaction start/end?

2005-04-07 Thread Andreas Bohnert
hello list, I would like to clearify, how ojb and jboss handle a transaction in a managed environment exactly. I'm using Jboss and the PersistenceBrokerFactorySyncImpl. I assume, it's is like that: void func() { PersistenceBroker broker = getBroker(); -- here the transaction starts!?

JBoss: how to recover from a transaction synchronization failure?

2004-09-30 Thread Andreas Bohnert
hi list, I want to do some database cleanup after a particular exception during a transaction arises. But when I try to use the broker which gets this particular exception, I get another exception: Transaction synchronization failed - wrong status of external JTA tx. Expected was an 'active'

Error while building CVS-snapshot

2004-09-06 Thread Andreas Bohnert
hello all, I just have tried to compile the snapshot from today with mbean support and I'm getting this error: [javac] Compiling 960 source files to /home/talies/workspace/db-ojb/target/classes/prod [javac] /home/talies/workspace/db-ojb/target/src/org/apache/ojb/jboss/PBFactory.java:42:

Re: Error while building CVS-snapshot

2004-09-06 Thread Andreas Bohnert
to replace source files in 'target' directory. AFAIK I removed the jboss mbean classes some time ago. To make the examples easier to deploy on different appServer, the JNDI lookup was no longer used. regards, Armin Andreas Bohnert wrote: hello all, I just have tried to compile the snapshot

Re: OJB+JNDI Datasource clarification

2004-08-23 Thread Andreas Bohnert
thanks anyway! andreas Armin Waibel wrote: Andreas Bohnert wrote: thanks for your quick response, armin! I see, the pwd/user settings in repository_user.xml are optional! ok, that's good, so I have only one problem left. maybe you can give me a hand with this: I have just one ear file with my

OJB+JNDI Datasource clarification

2004-08-20 Thread Andreas Bohnert
hi, I have read some postings about OJB's datasource handling and I'm confused now. It's said, that you have to a.) put username/password both in the datasource.xml and repository_database.xml or b.) let username/password blank and give it to the broker (with pbkey) at runtime. why is that? if

Re: OJB+JNDI Datasource clarification

2004-08-20 Thread Andreas Bohnert
thanks for your quick response, armin! I see, the pwd/user settings in repository_user.xml are optional! ok, that's good, so I have only one problem left. maybe you can give me a hand with this: I have just one ear file with my ejb's, war's, jar's and ojb.sar inside, and I have my datasource.xml

transactions in a managed environment: help needed!

2004-04-22 Thread Andreas Bohnert
hello everybody, we do a jboss project and we use the persistence broker only. therefore we use the PersistenceBrokerFactorySyncImpl, which is recommend to use with managed environments and pb only. we don't use entity beans. we have a stateless OjbSessionBean, which is called for any db

Re: transactions in a managed environment: help needed!

2004-04-22 Thread Andreas Bohnert
Exceptions? regards andreas Armin Waibel wrote: Hi Andreas, Andreas Bohnert wrote: hello everybody, we do a jboss project and we use the persistence broker only. therefore we use the PersistenceBrokerFactorySyncImpl, which is recommend to use with managed environments and pb only. we don't use

Re: [bug] cannot reach data in chaining iterator because resources ar e closed

2004-03-31 Thread Andreas Bohnert
hello janssen, i had the same 'problem'. now I put all items in a list, close the pk, and iterate over the list now. from my point of view, I would say it was a bug, that ojb has allowed to iterate with a closed pk. because there can be no cursor left to iterate over the query. well, that's

Re: [bug] cannot reach data in chaining iterator because resource s ar e closed

2004-03-31 Thread Andreas Bohnert
and one by one add them to the list. so displaying a list, this drastically increases the amount of steps needed to display it. -Original Message- From: Andreas Bohnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 12:24 PM To: OJB Users List Subject: Re: [bug] cannot reach data

[Fwd: Re: [bug] cannot reach data in chaining iterator because resource s ar e closed]

2004-03-31 Thread Andreas Bohnert
and one by one add them to the list. so displaying a list, this drastically increases the amount of steps needed to display it. -Original Message- From: Andreas Bohnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 12:24 PM To: OJB Users List Subject: Re: [bug] cannot reach data

Re: auto-delete does not work anymore: rc6???

2004-03-30 Thread Andreas Bohnert
the source code snip? regards, Armin Andreas Bohnert wrote: hello everbody, today I checked out the rc6 cvs version and did some validation tests on my application. I found out, that there is something going wrong, when I delete an object. I have an decomposed n-m relation: CONTACT

Re: auto-delete does not work anymore: rc6???

2004-03-30 Thread Andreas Bohnert
) iterator.next()).toXML(); System.out.println(str); } and check if the auto-delete is really false (false == 17, true == 23) regards, Armin Andreas Bohnert wrote: hello armin, yes, I did replace the repository.dtd. I just simplified my application source. Here is the client/server code that produce

auto-delete does not work anymore: rc6???

2004-03-29 Thread Andreas Bohnert
hello everbody, today I checked out the rc6 cvs version and did some validation tests on my application. I found out, that there is something going wrong, when I delete an object. I have an decomposed n-m relation: CONTACT INSTITUTION_CONTACT --- INSTITUTION when I delete an

Re: EntityBeans and OJB

2003-09-08 Thread Andreas Bohnert
Hi Thomas, I'm also a newbie to application servers, so a couple of questions are comming up now. Do you suggest to leave EJB's aside complety? I thought I'm supposed to use OJB within EJB's (like the OJB-EJB examples...) Are there also disadvantages if I work just with OJB and leave EJB aside?

Exceptions with EJB Examples

2003-09-08 Thread Andreas Bohnert
I'm working myself through the Deployment in EJB based applications - Tutorial, and finally I'm not sucessfull:( I'm working with Jboss 3.2.1, Hsqldb 1.7.1 and ojb rc3. I used the (like suggested..) the SequenceManagerNextValImpl but I was getting this one: 2003-09-08 15:14:03,421 ERROR

Re: Exceptions with EJB Examples

2003-09-08 Thread Andreas Bohnert
I don't know why, but's working now... sorry about that - just forget it andreas - Original Message - From: Andreas Bohnert [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Monday, September 08, 2003 3:24 PM Subject: Exceptions with EJB Examples I'm working myself through