Re: [castor-dev] [JDO-CVS]Doesnt hold read lock.

2004-12-04 Thread Stephen Ince
I have seen this in castor 9.5.3 when you do lazy loading. - Original Message - From: "Gregory Block" <[EMAIL PROTECTED]> To: "Castor-Dev" <[EMAIL PROTECTED]> Sent: Thursday, December 02, 2004 6:01 PM Subject: Re: [castor-dev] [JDO-CVS]Doesnt hold read lock. On 20 Oct 2004, at 18:49, We

Re: [castor-dev] castor xml collection handling

2004-10-18 Thread Stephen Ince
castor xml collection handlingAdam, You can use a 'addX' method. type="com.opendemand.jdo.ResponseHeader" required="false" direct="false" transient="false" collection="collection" get-method="getResponseHeaders" set-method="addResponseHeader"> Steve ---

Re: [castor-dev] JDO object creation performance flaw

2004-07-09 Thread Stephen Ince
Bruce, I think a union join on the dependent tables would give us better performance. FULL OUTER JOIN ON 1 = 2; I think it would be sum of all the dependent tables. The cost of the left outer joins is the cartesian product of all the dependend tables. Steve - Original Mess

Re: [castor-dev] JDO object creation performance flaw

2004-07-02 Thread Stephen Ince
ou'll need to > have an interface. I checked with other tools like OJB, as it looks like they have taken the same approach. Which comes as no surprise as dynamic > proxies depend on interfaces. > > FWIW > Werner > > On Thu, 1 Jul 2004 12:48:31 -0400, Stephen Ince wrote: >

Re: [castor-dev] JDO object creation performance flaw

2004-07-02 Thread Stephen Ince
you'll need to > have an interface. I checked with other tools like OJB, as it looks like they have taken the same approach. Which comes as no surprise as dynamic > proxies depend on interfaces. > > FWIW > Werner > > On Thu, 1 Jul 2004 12:48:31 -0400, Stephen Ince wrote: >

Re: [castor-dev] JDO object creation performance flaw

2004-07-01 Thread Stephen Ince
ing 1:1 > relations or support for the transient attribute at the level. Right now, I've got a patch posted for the transient support, and I'd be very interested to > get some hands-on comments. > > Interested ? > > Werner > > On Tue, 29 Jun 2004 21:10:17 +0100, Gr

Re: [castor-dev] JDO object creation performance flaw

2004-06-29 Thread Stephen Ince
it the patch, I just wanted to make sure that my approach was sound. - Original Message - From: "Stephen Ince" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 29, 2004 10:18 AM Subject: Re: [castor-dev] JDO object creation performance flaw > I have a

Re: [castor-dev] JDO object creation performance flaw

2004-06-29 Thread Stephen Ince
ailing list guidelines for this mailing list and > refrain from sending text/html messages. > > Regards > Werner > > --Original Message Text--- > From: Stephen Ince > Date: Mon, 28 Jun 2004 21:26:24 -0400 > > I just wanted to start the discourse. I think in general ope

Re: [castor-dev] JDO object creation performance flaw

2004-06-28 Thread Stephen Ince
is done.   - Original Message - From: Gregory Block To: [EMAIL PROTECTED] Sent: Monday, June 28, 2004 7:57 PM Subject: Re: [castor-dev] JDO object creation performance flaw On 28 Jun 2004, at 23:52, Stephen Ince wrote: Castor should probably use separate

Re: [castor-dev] JDO object creation performance flaw

2004-06-28 Thread Stephen Ince
indeed, or plain 1:M relations ?> > Werner> > --Original Message Text---> From: Stephen Ince> Date: Sat, 26 Jun 2004 13:06:54 -0400> >  > I think that the way castor constructs the select query for object population has a performance flaw.  >  > In the example below f

Re: [castor-dev] Key generator -- Duplicated Identity is generated!

2004-05-20 Thread Stephen Ince
Duplicated Identity is generated! > > Stephen Ince wrote: > > I am using the castors key generator to generate key ids. I am intermittently getting duplicate key ids. Does anyone know of a method to have castor refresh the key generator cache if it becomes out of sync with the database? I u

Re: [castor-dev] Key generator -- Duplicated Identity is generated!

2004-05-13 Thread Stephen Ince
Stein, I am going to try hard and reproduce it. Steve - Original Message - From: "Stein M. Hugubakken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 13, 2004 10:56 PM Subject: Re: [castor-dev] Key generator -- Duplicated Identity is generat

Re: [castor-dev] tomcat/hsqldb/castor configuration help

2004-04-29 Thread Stephen Ince
etDatabase(); db.begin(); db.update(userScenario); db.commit(); - Original Message - From: "Stephen Ince" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 27, 2004 6:35 PM Subject: Re: [castor-dev] tomcat/hsqldb/castor configuration

Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated!

2004-04-29 Thread Stephen Ince
Stein, Thanx for the info, I have added your changes from SQLEngine.java. I will see if that fixes the problem with the duplicate ids buf sofar so good. Steve - Original Message - From: "Stephen Ince" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, A

[castor-dev] tomcat/hsqldb/castor configuration help

2004-04-27 Thread Stephen Ince
  Has anyone done any tomcat 4.1.x/apache DB common 1.1 /hsqldb/castor? I would like to take a look at your database configuration for your webapp. I seem to have a update performance  problem. I have an object that makes 10,000 database updates.  When I update the object at the command line

Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated!

2004-04-26 Thread Stephen Ince
n" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 26, 2004 9:46 PM Subject: Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated! > > Stephen Ince wrote: > > Stein, > > Thanx for the suggestion. I like the idea of just

Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated!

2004-04-26 Thread Stephen Ince
" >          Default mapping for class com.opendemand.jdo.RequestHeader       : - Original Message - From: "Stein M. Hugubakken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 26, 2004 2:18 PM Subject: Re: [castor-dev] [JDO] Key

Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated!

2004-04-25 Thread Stephen Ince
Duplicated Identity is generated! > > Stephen Ince wrote: > > Emir, > > We have a load testing product that uses castor as the database abstraction layer and once in a blue a user will come back with this error. This is the last email I received about the error. Once we a tell the u

Re: [castor-dev] [JDO] Key generator -- Duplicated Identity is generated!

2004-04-24 Thread Stephen Ince
is occurring? I’m not a Castor developer, but just interested in the matter.   Regards, Emir       -Original Message-From: Stephen Ince [mailto:[EMAIL PROTECTED] Sent: 24. travanj 2004 2:32To: [EMAIL PROTECTED]Subject: [castor-dev] Key generator

[castor-dev] Key generator -- Duplicated Identity is generated!

2004-04-23 Thread Stephen Ince
I am using the castors key generator to generate key ids. I am intermittently getting duplicate key ids. Does anyone know of a method to have castor refresh the key generator cache if it becomes out of sync with the database? I use a plethora of databases, oracle, db2, sql server, and hsqldb

Re: [castor-dev] JDBCQueryExpression

2004-01-08 Thread Stephen Ince
Can you post a diff to the group when you are done. thanx Steve - Original Message - From: "Stein M. Hugubakken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 11:52 PM Subject: [castor-dev] JDBCQueryExpression > Hi! > > I'm working on refactoring and opti

Re: [castor-dev] read-only fields for dependent objects

2003-11-10 Thread Stephen Ince
ember 10, 2003 1:44 AM Subject: Re: [castor-dev] read-only fields for dependent objects > This one time, at band camp, Stephen Ince said: > > SI>How do I prevent updates for dependent objects? I want the ability to delete the objects but not to modify it's fields. The fields are actua

Re: [castor-dev] light weight data store

2003-10-19 Thread Stephen Ince
I would use hsqldb (http://hsqldb.sourceforge.net/) but it is relational. Castor needs a relational database. I think that is a plus, you datastore however can be a file and it has very good performance. - Original Message - From: "Koller, Shmuel" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: [castor-dev] problem creating children in jdoStore call back method

2003-10-16 Thread Stephen Ince
ldren in jdoStore call back method > This one time, at band camp, Stephen Ince said: > > SI>I am using a jdoStore callback method to create the child objects (Class B) but it doesn't alway create it's children. It is very intermittent. I was wondering if I had cache issue.

Re: [castor-dev] performance patch for TransactionContext

2003-10-10 Thread Stephen Ince
his.hostName == null)? "" : this.hostName )).hashCode(); } > > > Bruce Snyder wrote: > > > > This one time, at band camp, Stephen Ince said: > > > > SI>I just included one file org.apache.turbine.util.SequencedHashtable. It > > SI>didn

[castor-dev] JDO self-referential enhancement

2003-10-06 Thread Stephen Ince
Castor proposed enhancement for self-referential JDO relationships.   Add the parent-key attribute which would indicate the parent key for an object.   Example.    Class A --> Class B   Class A has a one-to-many relationship with Class B.    Class B has self-r

Re: [castor-dev] CASTOR no bind-xml element for a field

2003-10-06 Thread Stephen Ince
able to org.exolab.castor.persist.TransactionContext .  This fix gave me a 10x performance increase for loading a JDO object.         - Original Message - From: "Keith Visco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 04, 2003 5:10

[castor-dev] problem going from XML --> Java Object --> database

2003-10-02 Thread Stephen Ince
I am getting the following intermittent problems with my mappings file. I can't seem to go back and fourth between XML , java and database persistence.   Error: org.exolab.castor.jdo.DataObjectAccessException: no method to set value for field: com.opendemand.jdo.ResponseHeader in class: Clas

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Stephen Ince
-dev] performance patch for TransactionContext > This one time, at band camp, Stephen Ince said: > > SI>I just included one file org.apache.turbine.util.SequencedHashtable. It > SI>didn't have any dependencies. I didn't use a SequencedHashMap because it > SI>uses I

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Stephen Ince
nsactionContext > This one time, at band camp, Stephen Ince said: > > SI>I have attached a performance fix for castor using jdk1.3.1. The > SI>org.exolab.castor.persist.TransactionContext was using a Vector to store > SI>objects. The instance variable _objects is now of type

[castor-dev] Castor use of Vectors to store objects

2003-10-02 Thread Stephen Ince
I thought I posted a fix to the castor news group but I have yet to see it. What is the protocol or the forum to post fixes? I noticed that in org.exolab.castor.persist.TransactionContext it was storing objects in a Vector and then subsequently removing and retreiving the object through an iterator

[castor-dev] performance patch for TransactionContext

2003-10-01 Thread Stephen Ince
I have attached a performance fix for castor using jdk1.3.1.  Theorg.exolab.castor.persist.TransactionContext was using a Vector to storeobjects. The instance variable _objects is now of typeorg.apache.turbine.util.SequencedHashtable. The objects can be retreived inorder and removed using h

[castor-dev] ReadOnly and long transactions

2003-10-01 Thread Stephen Ince
Is is possbile to read an object in castor in ReadOnly mode and then update it in a long transaction. I noticed I get significant performance when I read an object in ReadOnly mode. I am however unable to update it. Steve [EMAIL PROTECTED] -

[castor-dev] performance patch for TransactionContext

2003-10-01 Thread Stephen Ince
I have attached a performance fix for castor using jdk1.3.1. The org.exolab.castor.persist.TransactionContext was using a Vector to store objects. The instance variable _objects is now of type org.apache.turbine.util.SequencedHashtable. The objects can be retreived in order and removed using hasht

[castor-dev] org.exolab.castor.persist.AddObjectEntry

2003-09-24 Thread Stephen Ince
I have a performance and functionality question regarding  org.exolab.castor.persist.addObjectEntry and org.exolab.castor.persist.removeObjectEntry methods.    I was doing some profiling and I noticed that I was spending a lot of time in these two functions. It was cycling through the entir

Re: [castor-dev] marshalling object

2003-09-15 Thread Stephen Ince
SO-8859-1. An example is here: > > http://castor.exolab.org/xml-faq.html#How-do-I-set-the-encoding? > > --Keith > > > > Stephen Ince wrote: > > > >  > > I am having difficulty marshalling a java object. I am getting the > > following error. It l

Re: [castor-dev] NullPointerException using CALL SQL

2003-03-28 Thread Stephen Ince
Peter, Is your class org.grimoire.beans.Card mapped? It has to be mapped and I think the order of the select columns has to match the order in the mapping. Steve - Original Message - From: "McEvoy, Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 12:14 P

Re: [castor-dev] Websphere and Castor configuration

2003-03-06 Thread Stephen Ince
); >_jdo.setClassLoader(getClass().getClassLoader()); > _jdo.setConfiguration( getClass().getResource( DatabaseFile > ).toString() ); > _jdo.setDatabaseName( "test" ); > > > > > > > "Stephen Ince" >

Re: [castor-dev] prepared stmt pool?

2003-02-20 Thread Stephen Ince
Bruce, Thanx for the timely response. Steve - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 8:19 PM Subject: Re: [castor-dev] prepared stmt pool? > This one time, at band camp, Steph

[castor-dev] prepared stmt pool?

2003-02-20 Thread Stephen Ince
I am doing bulk inserts. How can Castor use a PreparedStatement pool?   Steve

Re: [castor-dev] sql transient attribute ignored

2003-02-08 Thread Stephen Ince
't check to see if the field mapping has a sql attribute.     Steve       - Original Message - From: Stephen Ince To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 3:07 PM Subject: Re: [castor-dev] sql transient attribute ignored Transient fields mappin

Re: [castor-dev] sql transient attribute ignored

2003-02-07 Thread Stephen Ince
webResources to be transient for UserScenario.     Steve - Original Message - From: Stephen Ince To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 4:13 PM Subject: [castor-dev] sql transient attribute ignored I am having problems with Castor ignoring the sql

Re: [castor-dev] java.langClassCastException on db2

2003-01-24 Thread Stephen Ince
gs were too small. (This was an issue after I fixed the typo)   - Original Message - From: Stephen Ince To: [EMAIL PROTECTED] Sent: Friday, January 24, 2003 12:48 PM Subject: [castor-dev] java.langClassCastException on db2 I am getting the following error when

[castor-dev] java.langClassCastException on db2

2003-01-24 Thread Stephen Ince
I am getting the following error when I try to save a Castor JDO to db2. This works fine for mysql but I am having a problem with db2.   java.lang.ClassCastException: com.opendemand.jdo.RequestHeader    at org.exolab.castor.jdo.engine.JDOCallback.releasing(Unknown Source)    at org

Re: [castor-dev] Here a an interesting article on castor

2002-12-17 Thread Stephen Ince
I hope this helps. // the classloader will use the classpath to find the mapping file // it can be in a jar file or a war file String mappingFile = "/myapp/mapping.xml"; Mapping mapping = new Mapping(); mapping.loadMapping( this.getClass().getResource( m

Re: [castor-dev] Here a an interesting article on castor

2002-12-17 Thread Stephen Ince
I agree. I have Castor working on multiple platforms ( Solaris, Linux, Windows ) and with multiple app servers (Tomcat , WebSphere). - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 2:41 PM Subject: Re: [castor-dev] Here

Re: [castor-dev] Mapping for Tomcat in a WAR

2002-12-12 Thread Stephen Ince
The mapping.xml needs to be in the classpath. If the mapping file is located at WEB-INF/classes/BalancesMapping.xml then you can use the application.getResource("/BalancesMapping.xml") to load the file. This can also be put in a jar file under "WEB-INF/lib" and it should be able to load. Steve

[castor-dev] Modelling self-referential relationships

2002-12-10 Thread Stephen Ince
I can't seem to get self-referential relationships  to work.  I was wondering if I had a design or modeling problem. I am trying to model the following.   - Description of classes: UserScenario:

Re: [castor-dev] mapping file has to be in curr working directory or else absolute path??

2002-12-03 Thread Stephen Ince
Alex,     You can use the Class.getResource() method to lookup a resource file.  This will use the classpath to search for the file.    Example:     String database = "mydatabase";     String databaseFile =  "/com/opendemand/jdo/database.xml";     JDO jdo = new JDO();    j

[castor-dev] sql transient problem

2002-12-03 Thread Stephen Ince
I am using Castor 9.4.  I can't seem to get the transient="false" for JDO to work.    In my example a "UserScenario" can contain "WebResources" and a "WebResource" and contain a "WebResources"  Basically I am trying to get castor to use the "allWebResources" for database persistence and use