Keith, thank you very much for the explanations.
Some follow up questions. Sorry that if someone has already asked them, I
couldn't find the exact answers that I'm looking for in the mail archive:
Q A:
Do these two files share the same kind of properties. The castor WEB page
listed the properties that castor.properties support, but no mention of
castbuilder.properties.
Q B:
I assume the following steps is one of the possible ways to use the XML
framework.
1) Generate "normal" and descriptor java classes from schema. Say XXX,
XXXDescriptor and YYY, YYYDescriptor are the generated java file.
2) Extend my own class, say myXXX and myYYY from the generated class, XXX
and YYY respectively.
3) write a mapping file which maps XXX and YYY in the schema to myXXX and
myYYY respectively.
4) Extend myXXXDescriptor and myYYYDescriptor from XXXDescriptor and
YYYDescriptor respectively.
If this approach is OK and if I have nothing to add to myXXXDescriptor, is
there a way to tell the framework to use XXXDescriptor for marshaling and
unmarshaling?
Wei
----- Original Message -----
From: "Keith Visco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 9:14 PM
Subject: Re: [castor-dev] castor.properties & castorbuilder.properties
>
> The castor.properties file is mainly used by the Marshalling
> framework...
>
> the castorbuilder.properties is only used by the
> org.exolab.castor.builder.SourceGenerator.
>
> The properties files are obtained as a resource
> (getResourceAsStream("castor.properties"))
>
> So as long as the file exists in your working directory or somewhere in
> your classpath then it will be found. When specifying your classpath,
> make sure the castor jar comes after whatever directory contains your
> castor.properties file, otherwise the default castor.properties file
> will be loaded from the castor jar.
>
> --Keith
>
> Wei Chiang wrote:
> >
> > Hi,
> >
> > I'm new to castor. Looking through some of the mails in the archive, I
saw
> > the above two files are mentioned. What are the differences between
them
> > and when to use which?
> >
> > Where does the sourceGenerator look for castor.properties ( or is it
> > castorbuilder.properties)?
> >
> > In my environment, castor.properties and castorbuilder.properties
appear
> > under
> > ./src/etc/castor.properties
> > ./src/examples/castor.properties
> > ./src/main/org/exolab/castor/builder/castorbuilder.properties
> > ./src/main/org/exolab/castor/castor.properties
> > ./src/tests/castor.properties
> > ./build/classes/org/exolab/castor/builder/castorbuilder.properties
> > ./build/classes/org/exolab/castor/castor.properties
> > ./build/examples/castor.properties
> >
./build/examples/webapp/WEB-INF/classes/org/exolab/castor/builder/castorbuil
> > der.properties
> >
./build/examples/webapp/WEB-INF/classes/org/exolab/castor/castor.properties
> > ./build/tests/castor.properties
> >
> > Thank you in advance for the help.
> >
> > Wei
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> > unsubscribe castor-dev
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev