automatic failover

2003-12-10 Thread Stephen Ting
Can anybody give me some hints on how to design a failover system with OJB in appserver to database layer? I use OJB PB api within a session bean. The following code snippet roughly show roughly what i did. whenever the link from the application server to the database is down. I was not able cat

M:N thread unsafe behaviour solution?

2003-12-10 Thread McCann, Mike
Hi all, I'm being bitten by this problem now as well. I'm wondering if the patch or work around has been tested and is available. Regards, Mike -Original Message- From: Leandro Rodrigo Saad Cruz [mailto:[EMAIL PROTECTED] Sent: jeudi 16 octobre 2003 20:46 To: OJB Users List Subject: R

Re: Thoughts on OJB licensing

2003-12-10 Thread Brian McCallister
Please do, maintaining commercial compatibility is a raison d'etre of the APL. -Brian On Dec 10, 2003, at 5:12 PM, Robert J Celestino wrote: Maybe I should not say unacceptable ... The license "is what it is". The legal department is saying that "...if the proposed modification goes through,

RE: Thoughts on OJB licensing

2003-12-10 Thread Robert J Celestino
Maybe I should not say unacceptable ... The license "is what it is". The legal department is saying that "...if the proposed modification goes through, we may no longer be able to use Apache code in our products." So I do not mean to imply that there is a problem with the license, just that the

Re: Thoughts on OJB licensing

2003-12-10 Thread Robert r. Sanders
From the link in the original post, that's because it the for source contributors. From what I scanned through, it seems as if the Apache foundation is worried about some company contributing code, then turing around and claiming that the project is theirs because they had a copyright on the so

Re: Thoughts on OJB licensing

2003-12-10 Thread Gus Heck
IANAL, but this sentance worries me: You may add Your own copyright statement to such modifications and may provide (sublicense) additional or different license terms and conditions for use, reproduction, distribution or further modification of Your modifications, or for the De

Re: Thoughts on OJB licensing

2003-12-10 Thread Brian McCallister
Are they willing to provide feedback to the ASF as to why it is unacceptable? If they found a real problem we should know about it! -Brian On Dec 10, 2003, at 4:42 PM, Robert J Celestino wrote: Proposed: license itself: http://www.apache.org/licenses/proposed/LICENSE-2.0.txt General info: ht

RE: Thoughts on OJB licensing

2003-12-10 Thread Robert J Celestino
Proposed: license itself: http://www.apache.org/licenses/proposed/LICENSE-2.0.txt General info: http://www.apache.org/licenses/proposed/ Current license itself: http://www.apache.org/licenses/LICENSE General info: http://www.apache.org/licenses/ --

RE: Thoughts on OJB licensing

2003-12-10 Thread Lance Eason
Urh, that sounds alarming. What are the proposed changes to the Apache license? Do you have a link? -Original Message- From: Robert J Celestino [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:37 PM To: OJB Users List Subject: Thoughts on OJB licensing Hello All, I was

Thoughts on OJB licensing

2003-12-10 Thread Robert J Celestino
Hello All, I was wondering what everyone's thoughts were on the licensing of OJB. I would very much like to incorporate OJB into our next project, a comercial project. However the legal department is balking at the proposed changes to the Apache License. Their position is that the current Apac

Re: Persistence Broker 'NOT' Criteria

2003-12-10 Thread Jakob Braeuchi
hi robert, support for negative criteria is now in the repository. this feature is currently undocumented and not covered by a testcase. please report any problems to the list. jakob Robert Coup wrote: Hi Jakob, I think the NOT flag would be perfectly OK, and get around the problem of 'not' b

Re: ojb mixing up jdbc-connection-descriptors

2003-12-10 Thread Michael Mogley
Martin, Just wanted to let you and anyone else who's curious know that your idea worked for me. Actually, I didn't use profiles. I simply have each app merge its local repository definitions on startup into the global repository. This is actually better for me since it will later allow one app

Re: OutOfMemoryError using commons-lang 2.0 and OJB 1.0rc4

2003-12-10 Thread Martin Kalén
Graham Lounder wrote: Hello, Since I upgraded commons-lang to version 2.0 (due to the "display" taglib requiring it), OJB (1.0rc4) always throws a OutOfMemoryError when calling getCollectionByQuery() on the defaultPersistenceBroker: Check if the cache-class in OJB.properties is set to empty or pe

RE: OutOfMemoryError using commons-lang 2.0 and OJB 1.0rc4

2003-12-10 Thread Graham Lounder
Can anyone give any input on this problem? I just ran across it when I was trying to get the display tablib working. I'd really like to use the taglib with OJB but it doesn't seem to want to work together Cheers, Graham -Original Message- From: Michel Marti [mailto:[EMAIL PROTECTED

Newbie needs help

2003-12-10 Thread Patrick Scheuerer
Hello everybody, I just got started with OJB and i'm experiencing some problems. Here's the scenario that i'm trying to get to work: A DOCUMENT belongs to 1..n CATEGORY. A DOCUMENT is relevant to 0..n PRODUCT_MODELs. A DOCUMENT is written by 1..1 AUTHOR. D DOCUMENT is described by 1..n KEYWORDs.

Re: How to set up a ojb-jdo project

2003-12-10 Thread Gus Heck
This looks like a runtime error not a compile time error. This exception means, as you guessed, that either you forgot to enhance the class (with the sun reference enhancer), or the enhancer tried and failed (you should get messages if it fails). Alternately, you have inadvertently tried to get

OMDG Collection Classes

2003-12-10 Thread Robert Coup
Hi all, What is the preferred way to use collections with the ODMG API. As I understand it, you can use: DList - which persists itself and all its entries separately meaning foreign keys, etc. are all 'duplicated' (sort of) in the OJB_DLIST* tables. If you create a DList for non-persistence purpo

Re: Persistence Broker 'NOT' Criteria

2003-12-10 Thread Robert Coup
Hi Jakob, I think the NOT flag would be perfectly OK, and get around the problem of 'not' being a unary operator and therefore messing up the existing binary stuff. OJB222 is the feature request i created for this in scarab, which i've just commented with your new suggestion. Thanks, Rob :) -

Re: Using QueryBySQL to retrieve sequence value

2003-12-10 Thread Jakob Braeuchi
hi antonio, the class is only required to avoid a NullPointerException and it must be defined in the repository. the class does not affect the SQL. i admit using an arbitrary class is not very elegant (i'd prefer passing null), but today it's the only solution. jakob Antonio Gallardo wrote:

Re: Persistence Broker 'NOT' Criteria

2003-12-10 Thread Jakob Braeuchi
hi antonio, Antonio Gallardo wrote: Jakob Braeuchi dijo: hi antonio, the parameter could be used to mark the whole criteria 'negative'. there would be no special addNot-method: Criteria crit1 = new Criteria(); crit1.addEqualTo("field1","test1"); crit1.addEqualTo("field2","test1"); crit1.setNega

Re: Using QueryBySQL to retrieve sequence value

2003-12-10 Thread Antonio Gallardo
Jakob Braeuchi dijo: > hi antonio, > > the queries provided by ojb require a class to be defined in the > repository. you can use any class defined in the repository in the > SQL-Query: > > QueryBySQL q = QueryFactory.newQuery(AnyClass.class,"select > mySequence.nextval from dual"); > Iterator iter

Re: Using QueryBySQL to retrieve sequence value

2003-12-10 Thread Jakob Braeuchi
hi antonio, the queries provided by ojb require a class to be defined in the repository. you can use any class defined in the repository in the SQL-Query: QueryBySQL q = QueryFactory.newQuery(AnyClass.class,"select mySequence.nextval from dual"); Iterator iter = broker.getReportQueryIteratorBy

Re: dead lock in odmg api

2003-12-10 Thread Armin Waibel
Hi Matthias, you are the second one report about a deadlock problem in ODMG. I will try to figure out what's going on before long. (before rc5 ;-)) regards, Armin Matthias Roth wrote: Hello I get the newest version of ojb. I tested the concurrency of ojb (odmg api) with 4 threads The threads makes

Re: Using QueryBySQL to retrieve sequence value

2003-12-10 Thread Antonio Gallardo
Jakob Braeuchi dijo: > hi antonio, > > your QueryBySql will look for a class Integer in the repository ! and it > will fail. use a ReportQuery to obtain rows from the database. > > hth > jakob Hi Jakob: Thanks for the answer. The problem here is I am just quering a "nextval()" from a sequence. I

Re: Persistence Broker 'NOT' Criteria

2003-12-10 Thread Antonio Gallardo
Jakob Braeuchi dijo: > hi antonio, > > the parameter could be used to mark the whole criteria 'negative'. there > would be no special addNot-method: > > Criteria crit1 = new Criteria(); > crit1.addEqualTo("field1","test1"); > crit1.addEqualTo("field2","test1"); > crit1.setNegative(true); The poin

dead lock in odmg api

2003-12-10 Thread Matthias Roth
Hello I get the newest version of ojb. I tested the concurrency of ojb (odmg api) with 4 threads The threads makes parallel insert, updates and selects of objects. The odmg api locks two similar object of different transaction if they try to call an insert at the same time. In my test, if a lock oc

Re: Newbie needs help

2003-12-10 Thread Jakob Braeuchi
hi patrick, the collection-descriptor is wrong : there's no gruss aus bern jakob Patrick Scheuerer wrote: Hello everybody, I just got started with OJB and i'm experiencing some problems. Here's the scenario that i'm trying to get to work:

Re: Vector not found in OJB Repository

2003-12-10 Thread Jakob Braeuchi
hi patrick, please post your classes as well. why do you use field-id ? it works but makes the repository hard to read. jakob Patrick Scheuerer wrote: Fixed it. Changed nothing though. Still the same problem -Original Message- From: Anish [mailto:[EMAIL PROTECTED] Sent: Donnersta

RE: SystemErr unexpected token

2003-12-10 Thread Matthias Roth
Hi Armin in the mean time I found the problem. We made a adapter class which capsulate OJB (top on odmg). We had a call like this: oList =broker.serviceBrokerHelper().getKeyValues(descriptor, vo); this call returns in a prev. version a list with the the key values and not a list with org.apache.oj

Re: Using QueryBySQL to retrieve sequence value

2003-12-10 Thread Jakob Braeuchi
hi antonio, your QueryBySql will look for a class Integer in the repository ! and it will fail. use a ReportQuery to obtain rows from the database. hth jakob Antonio Gallardo wrote: Hi: I need to take a value from a sequence in PostgreSQL. The first idea is to run something like: QueryBySQL q

Re: join: possible with ReportQueries?

2003-12-10 Thread Jakob Braeuchi
hi joerg, ojb can only build joins based on relationships defined in the repository. hth jakob Joerg Lensing wrote: Gelhar, Wallace Joseph wrote: Hi joerg, OJB executes all queries on the database, so there must exist a mapping of attributes to database columns if you want to be able to query

Re: Persistence Broker 'NOT' Criteria

2003-12-10 Thread Jakob Braeuchi
hi antonio, the parameter could be used to mark the whole criteria 'negative'. there would be no special addNot-method: Criteria crit1 = new Criteria(); crit1.addEqualTo("field1","test1"); crit1.addEqualTo("field2","test1"); crit1.setNegative(true); Criteria crit2 = new Criteria(); crit2.addEqua

How to set up a ojb-jdo project

2003-12-10 Thread "Sebastian Münch"
Hi, we are in the middle of developing a small application using the jdo api on ojb. The tutorials are running fine, now we wanna setup our own app. By compiling our application, we get the following error: >> [JDO] DEBUG: OjbStoreCon

RE: How does ODMG work?

2003-12-10 Thread Mahler Thomas
exactly! > -Original Message- > From: Jewett, Diane C [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2003 7:17 PM > To: OJB Users List; [EMAIL PROTECTED] > Subject: RE: How does ODMG work? > > > So does it mean that it is no different then: > > select * from Product > > -O

Re: Newbie questions

2003-12-10 Thread Brian McCallister
On Dec 10, 2003, at 4:08 AM, Mahbub ul Huq Bin Kabir wrote: Hi, I’m a very new comer to this technology and don’t have clear idea about persistence layer. So I decided to ask some question to this group and hopefully get a reply. Happy to (try) to help! Now I’m using the JDBC API for the devel

RE: Vector not found in OJB Repository

2003-12-10 Thread Patrick Scheuerer
Fixed it. Changed nothing though. Still the same problem > -Original Message- > From: Anish [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 11. Dezember 2003 09:45 > To: [EMAIL PROTECTED] > Subject: Re: Vector not found in OJB Repository > > hi, > the is wrong. where is the > field

RE: Newbie needs help

2003-12-10 Thread Patrick Scheuerer
> -Original Message- > your repository_xml says: indirection-table="document_keyword". > typo? (missing 's'); This is not a typo. The table is called document_keyword. > > handle join tables needed by many-to-many in OJB? > > see .../db-ojb/src/test/org/apache/ojb/repository_junit.xml

Re: Collections on base class. Correction!

2003-12-10 Thread Rhys Parsons
I included the incorrect portion of the mapping. It should be this: Cheers! Rhys Rhys Parsons 10/12/2003 10:53 Please respond to "OJB Users List" <[EMAIL PROTECTED]> To:[EMAIL PROTECTED] cc: (bcc: Rhys Parsons/causeway-tech) Subject:Colle

ODMG Cache Problem ?

2003-12-10 Thread Kim Wegerle
Hello again, I've written a test for testing transactions and isolation level with odmg in concurrent threads. The test works like that: - Thread 1 reads an object o - Thread 1 modifies attribute a object o, but doesn't commit - Thread 1 waits for Thread 2 - Thread 2 reads the same object - Th

Collections on base class.

2003-12-10 Thread Rhys Parsons
Hi, I have three classes extended from a base class. The base abstract class is Item. The three subclasses are PricedItem, CompositeItem and TextItem. I also have a Contract class which contains a collection of Items. I have mapped the PricedItem, CompositeItem and TextItem classes to one

RE: BATCH-MODE parameter

2003-12-10 Thread eric barbe
Hi, Here is the full stack trace of the exception: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 )

Re: JDK 1.4 dependency in SqlTypeHelper.java

2003-12-10 Thread Armin Waibel
Hi Gerhard, thanks again! Checked in your fixes. regards, Armin Gerhard Grosse wrote: Hi Armin, Thanks for the quick fix. I had to add one change in org.apache.ojb.broker.metadata.torque.TorqueFieldGenerator.java: + import org.apache.ojb.broker.metadata.JdbcType; (line 58) - int jdbcType = desc

RE: Newbie needs help

2003-12-10 Thread oliver . matz
Hello Patrick, > -Original Message- > From: Patrick Scheuerer [mailto:[EMAIL PROTECTED] > My first question is: since there are many-to-many > relatioships between > DOCUMENT and CATEGORY and DOCUMENT and KEYWORDS there are two > join tables > called DOCUMENT_CATEGORY and DOCUMENTS_KEYW

Newbie questions….please help me

2003-12-10 Thread Mahbub ul Huq Bin Kabir
Hi, I’m a very new comer to this technology and don’t have clear idea about persistence layer. So I decided to ask some question to this group and hopefully get a reply. Now I’m using the JDBC API for the development. I’m handling a large database with simple JDBC and have to generate reports

Re: JDK 1.4 dependency in SqlTypeHelper.java

2003-12-10 Thread Gerhard Grosse
Hi Armin, Thanks for the quick fix. I had to add one change in org.apache.ojb.broker.metadata.torque.TorqueFieldGenerator.java: + import org.apache.ojb.broker.metadata.JdbcType; (line 58) - int jdbcType = descriptor.getColumnJdbcType(); (line 109) + int jdbcType = descriptor.getJdbcType().getTy

Re: Vector not found in OJB Repository

2003-12-10 Thread Anish
hi, the is wrong. where is the field with id 9. check it out. Anish.. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.537 / Virus Database: 332 - Release Date: 11/6/2003 ---

Re: JDK 1.4 dependency in SqlTypeHelper.java

2003-12-10 Thread Gerhard Grosse
That's good news. Thanks for the info! Gerhard On Tue, 9 Dec 2003 17:19:46 +0100, Mahler Thomas <[EMAIL PROTECTED]> wrote: >Hi Gerhard, > >we will continue to provide JDK1.2 and JDK1.3 support. >All compilation dependencies will be fixed by next weekend. > >cu, >thomas > >> -Original Message-

Newbie needs help

2003-12-10 Thread Patrick Scheuerer
Hello everybody, I just got started with OJB and i'm experiencing some problems. Here's the scenario that i'm trying to get to work: A DOCUMENT belongs to 1..n CATEGORY. A DOCUMENT is relevant to 0..n PRODUCT_MODELs. A DOCUMENT is written by 1..1 AUTHOR. D DOCUMENT is described by 1..n KEYWORDs.

Vector not found in OJB Repository

2003-12-10 Thread Patrick Scheuerer
Hello OJB Group, I wrote a test case to check if my OJB configuration works properly but everytime I run it I get the following exception: org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: java.util.Vector not found in OJB Repository Here's the repository_user.xml