Hi there,

We are using castor 1.1 in a multi-threaded environment.

Please find below a brief description about our usage of castor and our
system -
Our application consumes xml message from messaging queue then uses castor
to process the message and send back a response. This is a plain simple POJO
application that listens to the messaging queues and we've about 10 threads
listening to the queue. Whenever a message arrives one of the thread picks
up the xml message and starts processing. We use a mapping.xml.

Observation of the issue -
Recently after upgrading to castor 1.1 we are seeing that when two threads
pick up and process different xml messages at the same time we see that the
response of one thread has unwanted data attached to the response xml. The
corrupt xml response message has two parts first part was the correct
repsonse xml and the second part actually has the Java object converted to a
xml message for e.g. it was not using the mapping file to generate the xml
rather the java object's attribute names were directly used as tag names.
There are no errors / exceptions thrown or logged in the log files.

We havent seen this kind of issue before when we were using Cator 0.9.5.3

Please let me know if someone has experienced the same issue or a some
inputs towards what could possibly be causing the issue.

Thanks and Regards,
Gopinath R.

Reply via email to