Here is more specific of what I'm trying to do:

I have a route that listens for JMS messages in a Queue and these JMS
messages are SOAP xml messages. In this message, I have to filter out
certain piece of the xml and convert that to a CSV format which will
finally be stored as an excel file:

          ....
          ....
          <pss:persons xmlns:pss="persons:datatype">
            <rss:person xmlns:rss="person:datatype">
                <name>jothi</name>
                <age>32</age>
                <gender>M</gender>
            </rss:person>
          </ns:persons>
          ....
          ....

My idea is to create a java representation of the above piece of xml and
use the JAXB transformation to get the values from the xml to my Java
object. Later use Bindy to write to the CSV.

Is my approach correct? How could I extract the xml that I"m interested in?

Regards,
Jothi

On Thu, Aug 23, 2012 at 4:37 PM, Joe San <codeintheo...@gmail.com> wrote:

> I would have to route a JMS message which I guess would be from Tibco to a
> CSV file to be saved as .xls in a file system.
>
> I guess I have to use both the JAXB and Bindy dataformats. JAXB to
> unmarshall from xml to Java and marshall from java to csv using Bindy. But
> can I annotate the same domain object which I get from the generated JAXB
> with annotations from the Bindy?
>
> Regards,
> Jothi
>

Reply via email to