Hello All,
I'm using Castor 0.9.3 for mapping XML to java objects and vice versa. It
has been working really well until recently I hit a problem with marshalling
a java object to XML.
I'm currently caching the Mapping object (after loading the mapping file).
Whenever I need to create an XML from a Java Object, I create a new
Marshaller(with a new writer) and set the mapping to the cached Mapping
object and then call the marshal() method. I'm using this in a multi
threaded environment.
This approach seemed to work for most cases. Just recently I have hit a
problem with the created XML not reflecting the Mapping file(for XML tags),
but with the default XML tags from the java object.
eg.
Based on the mapping file, If the excepted XML was something like..
<OrderInfo>
<OrderType>
.....
</OrderInfo>
and my java Object 'OrderInfo' had a 'set' and 'get' method for OrderType
(getOrderType, setOrderType..) etc.
My out XML is sometimes,
<order-info>
<order-type>
.....
</order-info>
I'm not sure why this is happening suddenly. Could this be related to
caching of the Mapping object ?
I tried going through the mailing list to see if Mapping was thread
safe...but couldn't find any info on this.
Thanks for all you help.
Ram.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev