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
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
---
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
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:
>
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:
>
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
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
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
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
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
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
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
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
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
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
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
"
>
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
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
is
occurring?
Im 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
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
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
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
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
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.
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 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
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
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
-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
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
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
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
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]
-
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
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
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
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
);
>_jdo.setClassLoader(getClass().getClassLoader());
> _jdo.setConfiguration( getClass().getResource( DatabaseFile
> ).toString() );
> _jdo.setDatabaseName( "test" );
>
>
>
>
>
>
> "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
I am doing bulk inserts. How can Castor use a PreparedStatement pool?
Steve
'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
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
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
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
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
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
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
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:
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
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
50 matches
Mail list logo