camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe San <codeintheo...@gmail.com>
Subject Re: Camel JMS to CSV (with Excel Strategy)
Date Fri, 24 Aug 2012 06:20:48 GMT
When versioning with the package names, I would end up changing the imports
of these models in my classes that use these models. Yes it is just a
ctrl+o in eclipse, but still I would give it a thought.

Now back to my original question, how can I filter the xml that I posted
above in the mail thread to extract a specific set of xml elements using
xpath. Can anyone point me to an example?

Regards,
Jothi

On Fri, Aug 24, 2012 at 8:13 AM, Charles Moulliard <ch007m@gmail.com> wrote:

> Hi Jothi,
>
> Christian suggests to define package name with a version number like this :
>
> com.mycompany.domain.v1_0.mymodel
> com.mycompany.domain.v1_1.mymodel
> com.mycompany.domain.v2_0.mymodel
>
> So, based on different xsd files, you will generate domain classes that you
> can next enrich with Bindy annotations.
>
> Regards,
>
>
>
> On Fri, Aug 24, 2012 at 6:47 AM, Joe San <codeintheopen@gmail.com> wrote:
>
> > Christian,
> >
> > I did not get your point. In one of my earlier projects, we used to
> version
> > the xsd file in SVN. But when you say version the generated objects, do I
> > do it using an annotation? Can that also be generated as well?
> >
> > Regards,
> > Jothi
> >
> > On Thu, Aug 23, 2012 at 10:38 PM, Christian Müller <
> > christian.mueller@gmail.com> wrote:
> >
> > > But than you cannot re-generate your JAXB objects. You should consider
> to
> > > version the generated and annotated domain objects instead to generate
> it
> > > from your XSD file...
> > >
> > > Best,
> > > Christian
> > >
> > > On Thu, Aug 23, 2012 at 5:29 PM, Charles Moulliard <ch007m@gmail.com>
> > > wrote:
> > >
> > > > Yep. You can annotated your domain class with both JAXB and Bindy
> > > > annotations.
> > > >
> > > > On Thu, Aug 23, 2012 at 4:37 PM, Joe San <codeintheopen@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
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Charles Moulliard
> > > > Apache Committer / Sr. Pr. Consultant at FuseSource.com
> > > > Twitter : @cmoulliard
> > > > Blog : http://cmoulliard.blogspot.com
> > > >
> > >
> > >
> > >
> > > --
> > >
> >
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Pr. Consultant at FuseSource.com
> Twitter : @cmoulliard
> Blog : http://cmoulliard.blogspot.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message