[castor-dev] Recycling or obtaining available keys/values

2003-06-18 Thread tek1
Hello all. Just wondering if there is a way, similar to perhaps the HIGH-LOW generator, of obtaining the next available key (or value) of a field? For example, if you have the below table: PERSON ID NAME --- 1 John 2 Lynda 3 Jim 4 Sue 5

Re: [castor-dev] Logging API (was: Timestamp/Key idea)

2003-06-18 Thread Bruce Snyder
This one time, at band camp, Edward Sumerfield said: ES>I assume you are referencing this paragraph: ES> ES>Also missing from the Commons Logging system is any ES>mechanism for configuring the various underlying logging ES>systems. Even adjustments so basic as setting the logging ES

Re: [castor-dev] Timestamp/Key idea

2003-06-18 Thread Edward Sumerfield
Sorry if this is long winded.   In a long transaction in the web environment we load our objects, copy some fields into the web page and exit. When the post returns we copy those fields back into new objects and try to db.update but can't because the timestamp is wrong, so we have to reload t

Re: [castor-dev] Logging API (was: Timestamp/Key idea)

2003-06-18 Thread Edward Sumerfield
I assume you are referencing this paragraph:       Also missing from the Commons Logging system is any     mechanism for configuring the various underlying logging     systems. Even adjustments so basic as setting the logging     threshold are impossible.   The commons logging API doesn'

[castor-dev] Fix for duplicate entry problem with long transactions andrelationships

2003-06-18 Thread Frank Cobia
I was having a problem today and I searched the archives and found several posts from people (including myself) with the same problem. Some of them from a year or more ago. The problem is as follows. You have two classes Class A and Class B. Class A has a 1-to-1 relationship to Class B (This may a

[castor-dev] The marshaller cannot unmarshal non primitive types that do not implement java.io.Serializable

2003-06-18 Thread Milan Dattawade
Hi I am getting this weird exception even though all the classes that I am trying to unmarshall implement java.io.Serializable. Is there any other reason for getting this exception? Any help would be most welcome.   The marshaller cannot marshal/unmarshal types of Void.class, Class.class

Re: [castor-dev] Marshall multiple Java Objects into one XML file ?

2003-06-18 Thread Jakubowski, Quynh
It works...what a neat little trick ! Thanks Keith, Quynh -Original Message- From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 7:18 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Marshall multiple Java Objects into one XML file ? Hi Quynh, You can do the f

Re: [castor-dev] Timestamp/Key idea

2003-06-18 Thread Werner Guttmann
Bruce, just trying to address your concern whether to use Log4J or the Jakarta Commons Logging package. There's a quite powerful xml publishing framework available at http://xml.apache.org named Cocoon. Now, Cocoon uses Jakarta Commons Logging, and I know for sure that a user can EASILY c

Re: [castor-dev] Timestamp/Key idea

2003-06-18 Thread Bruce Snyder
This one time, at band camp, Edward Sumerfield said: ES>RE: [castor-dev] [JDO] bug 1107 Timestamp mismatched exception when using longtransactionI haven't implemented this but was thinking I might try it. Anyone think it would help? ES> ES>All the getKey methods in your castor classes should hav

Re: [castor-dev] Again Castor JDO and Connection Pooling

2003-06-18 Thread Emanouil Kazaltzis
Alexey, I use tomcat and mysql can you please give an correct configuration example to do connection pooling. Because I'm using DBCP and I really got the feeling that some connection don't close. E -Original Message- From: Alexey A. Efimov [mailto:[EMAIL PROTECTED]

[castor-dev] Castor and MS SQL-Server problem

2003-06-18 Thread Paulo Lopes
Hi, I'm having some trouble configuring castor to interoperate with sql-server. I've almost no experience with castor, i've tryed to replicate the cmp_example from openejb but instead of postgresql, i'm using sql server. Can someone help me? My configuration is like this: Server: vitaboss Dat

Re: [castor-dev] Tiny framework

2003-06-18 Thread Alexey A. Efimov
Hello Bruce and all, I finished draft documentation for my Castor Framework, you can look at it on: http://sourceforge.net/projects/phantom-castor/ Also, I make new JNDI configuration mechanizm for castor. Now you can use JNDI resource for JDO configuration. Now documentation is just introductio

[castor-dev] Setting Schema ElementDecl type to anyType

2003-06-18 Thread Jasmin Wason
Using the SOM how do I set an element declaration's type to anyType? I have tried the following which produces an error: Schema schema = new Schema(); ... ElementDecl elDec = new ElementDecl(schema); AnyType any = new AnyType(schema); varElDec.setType(any); ... java.lang.IllegalArgumentException:

Re: [castor-dev] Costor initialasation overhead

2003-06-18 Thread Bruce Snyder
This one time, at band camp, tek1 said: t>Just cache the JDO instance and you should be fine. Also, try using the t>web container's Connection Pooling for recycling of the database connections. t> t> t> t>At 11:04 03/06/17 +0200, you wrote: t>>Hello, t>> t>>how is the initialasation overhead for

Re: [castor-dev] multithreaded environment with CastorJDO / Connectionpooling with PoolMan

2003-06-18 Thread Bruce Snyder
This one time, at band camp, Werner Guttmann said: WG> WG>Jens, WG> WG>have a look at your exception handling, especially the try/catch block where you want to close the Database WG>instance. If the commit() fails for one reason or another, your code to close the Database instance will neevr W