camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <sagar...@gmail.com>
Subject Re: Contribute for camel - castor component
Date Mon, 28 Sep 2009 17:55:42 GMT
Hi all,

I have couple of points in my mind to improve the Camel-castor
component , i will look in to them according to my spare time .

1.)  Adding an example to illustrate usage of  Camel-castor component
this will generally address the usage of any XML to Java mapping , I
think this might help out for other OXM components too.

2. ) At the moment Camel-castor component doesn't supports for all
configuration options available with Castor framework. Gradually i
will add more options with proper test cases .

3.) This Camel-castor component only supports for Caster XML mapping
features only, but castor provide nice JDO[1] framework too ( ORM
mapper similar to Hibernate) I'm planing to improve this component to
supports castor-JDO too. The main advantage here is only one mapping
file is enough for both OXM and ORM mapping. Some possible use cases
as follows

 a.)- Getting XML content and convert into a beans and save/update in a DB.
 b.)- Retrieving some beans from a DB and convert them as a XML
content to send.


[1] - http://www.castor.org/jdo.html

Thanks ,

On Mon, Sep 28, 2009 at 8:55 PM, Sagara Gunathunga <sagaragu@gmail.com> wrote:
> I have added some more details. Please take a look and feel free to
> modify anything required.
>
>
> On Mon, Sep 28, 2009 at 8:17 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>> On Mon, Sep 28, 2009 at 4:37 PM, Sagara Gunathunga <sagaragu@gmail.com> wrote:
>>> Oh .... I couldn't  mention :)  I'm already a Apache committer  for
>>> Apache WS project [1] , i don't think it's required fill ICLA  again
>>> WDYT ?
>>>
>>
>> No the ICLA is Apache "global".
>>
>>
>>>
>>>
>>> [1] - http://people.apache.org/~jim/committers.html   ( Id - sagara)
>>
>> Perfect I found you. I have given your account edit rights to the
>> Camel wiki pages. Just click the edit button on the bottom of the
>> page.
>>
>> Just should be able to edit now.
>>
>>>
>>> On Mon, Sep 28, 2009 at 8:00 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>>> On Mon, Sep 28, 2009 at 4:18 PM, Sagara Gunathunga <sagaragu@gmail.com>
wrote:
>>>>> Hi Claus ,
>>>>>
>>>>> It look good !  But i think its better to add little more details, may
>>>>> i edit the page ?
>>>>>
>>>>> I signed up for wiki (username -sagara ) but i cant see any page edit
>>>>> option there . how can i edit the content ? do i have to provide a
>>>>> patch ?
>>>>>
>>>>
>>>> If you do not want the Apache ICLA stuff you can add comments to the
>>>> JIRA ticket about the documentation or reply on this dev forum.
>>>> Then I can do the changes for you.
>>>>
>>>> However having a signed ICLA at Apache makes you one step closer to
>>>> becoming a member of an Apache project, in case you get a bit more
>>>> involved.
>>>>
>>>>
>>>>> Thanks,
>>>>>
>>>>> On Mon, Sep 28, 2009 at 1:32 PM, Claus Ibsen <claus.ibsen@gmail.com>
wrote:
>>>>>> On Fri, Sep 25, 2009 at 3:22 PM, Sagara Gunathunga <sagaragu@gmail.com>
wrote:
>>>>>>> Thanks Claus, I will look in to that wiki documentation too.
>>>>>>>
>>>>>>> On 9/25/09, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>>  I have just added it to Camel. Thanks a lot.
>>>>>>>>
>>>>>>>>  Do you want to help out with the wiki documentation as
well?
>>>>>>>>
>>>>>>
>>>>>> I created a wiki page at:
>>>>>> http://cwiki.apache.org/confluence/display/CAMEL/Castor
>>>>>>
>>>>>> Could you take a look?
>>>>>>
>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  On Wed, Sep 23, 2009 at 5:15 PM, Sagara Gunathunga <sagaragu@gmail.com>
wrote:
>>>>>>>>  > Hi Claus,
>>>>>>>>  >
>>>>>>>>  > I have attached a zip file with the new component.
>>>>>>>>  >
>>>>>>>>  > Thanks,
>>>>>>>>  >
>>>>>>>>  > On Wed, Sep 23, 2009 at 11:07 AM, Claus Ibsen <claus.ibsen@gmail.com>
wrote:
>>>>>>>>  >> On Wed, Sep 23, 2009 at 7:05 AM, Sagara Gunathunga
<sagaragu@gmail.com> wrote:
>>>>>>>>  >>> Hi Claus,
>>>>>>>>  >>>
>>>>>>>>  >>> 1.) I have created a JIRA issue for this [1]
, please add appropriate
>>>>>>>>  >>> Component-category/appropriate Version and
assign to me . I will
>>>>>>>>  >>> update patches for new component soon.
>>>>>>>>  >>>
>>>>>>>>  >>> 2.) Please provide the SVN location for  camel-spring.xsd
schema file.
>>>>>>>>  >>> i want to create a patch for this too.
>>>>>>>>  >>>
>>>>>>>>  >>
>>>>>>>>  >> Its auto generated based on JAXB annotations on
the model classes in camel-core.
>>>>>>>>  >>
>>>>>>>>  >> Do not worry about camel-core stuff I can add
the needed classes to
>>>>>>>>  >> make sure castor is avail in the XSD file and
easy to use as a data
>>>>>>>>  >> format.
>>>>>>>>  >>
>>>>>>>>  >>
>>>>>>>>  >>
>>>>>>>>  >>>
>>>>>>>>  >>> [1] - https://issues.apache.org/activemq/browse/CAMEL-2034
>>>>>>>>  >>>
>>>>>>>>  >>>
>>>>>>>>  >>> Thanks,
>>>>>>>>  >>>
>>>>>>>>  >>> On Wed, Sep 23, 2009 at 12:20 AM, Sagara Gunathunga
<sagaragu@gmail.com> wrote:
>>>>>>>>  >>>> Sounds good. I will create a JIRA ticket
and will upload new component
>>>>>>>>  >>>> as a  .zip file also for other modifications
required for Camel-core
>>>>>>>>  >>>> module to add new data type, i will create
patches.
>>>>>>>>  >>>>
>>>>>>>>  >>>> One problem I'm facing is I couldn't find
SVN location for
>>>>>>>>  >>>> camel-spring.xsd file , i need to add
Schema entry for this new
>>>>>>>>  >>>> datatype. please provide the location
for above file.
>>>>>>>>  >>>>
>>>>>>>>  >>>> BTW this will take little time, i need
 to improve  comments , add
>>>>>>>>  >>>> apache-boilerplate text ..etc. Once i
completed i will update the dev
>>>>>>>>  >>>> list.
>>>>>>>>  >>>>
>>>>>>>>  >>>> Thanks ,
>>>>>>>>  >>>>
>>>>>>>>  >>>> On Tue, Sep 22, 2009 at 11:53 PM, Claus
Ibsen <claus.ibsen@gmail.com> wrote:
>>>>>>>>  >>>>> On Tue, Sep 22, 2009 at 8:19 PM, Sagara
Gunathunga <sagaragu@gmail.com> wrote:
>>>>>>>>  >>>>>>> Cool so the maven repos contain
the > 0.9.7 version which is Apache license.
>>>>>>>>  >>>>>>> What version of Castor did
you use?
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>> I used 1.3 version and for this
component required only castor-xml:1.3
>>>>>>>>  >>>>>> and castor-core:1.3  jar files
as dependencies. Since we use only core
>>>>>>>>  >>>>>> features of Castor data binding,
moving to other versions also not a
>>>>>>>>  >>>>>> problem.
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>> And do you have unit tests
as well? That is something we *must* have
>>>>>>>>  >>>>>>> for camel components.
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>> Yes , I already created several
unit tests for this and  those are
>>>>>>>>  >>>>>> based on CamelTestSupport and
one unit test for Spring support.
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>
>>>>>>>>  >>>>> Fantastic.
>>>>>>>>  >>>>>
>>>>>>>>  >>>>> To move one I think we should create
a ticket in Camel JIRA and then
>>>>>>>>  >>>>> you can attach a zip file with the
new component.
>>>>>>>>  >>>>> When you attach files to Apache JIRA
there is a ticket to donate code
>>>>>>>>  >>>>> to ASF license or wha
>>>>>>> tever the [x] was named.
>>>>>>>>  >>>>>
>>>>>>>>  >>>>>
>>>>>>>>  >>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>> Thanks ,
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>> On Tue, Sep 22, 2009 at
9:05 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>>>>>>>  >>>>>>>>> On Tue, Sep 22, 2009
at 5:31 PM, Sagara Gunathunga <sagaragu@gmail.com> wrote:
>>>>>>>>  >>>>>>>>>> Hi Claus,
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> I checked the
Castor project license, they have dual licenses but
>>>>>>>>  >>>>>>>>>> clearly after
Castor release 0.9.7 they are releasing under the Apache
>>>>>>>>  >>>>>>>>>> license [1] .
In this page they have define their license details [2].
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> [1] - http://www.castor.org/new-license.txt
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> [2] - http://www.castor.org/license.html
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>> Sounds good.
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>> Is Castor 0.9.7+ published
to any maven repositories or does any of
>>>>>>>>  >>>>>>>>> its .jars packaged
as OSGi bundles?
>>>>>>>>  >>>>>>>>> To include it we need
to be able to download the .jars with maven in
>>>>>>>>  >>>>>>>>> well known maven repos.
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>> If not we need to
add it to e.g. servicemix repo. But its better when
>>>>>>>>  >>>>>>>>> projects can publish
their own releases to maven repos.
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> Thanks ,
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> On Tue, Sep 22,
2009 at 8:41 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
>>>>>>>>  >>>>>>>>>>> Hi
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>> Sounds cool.
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>> Can you check
the license of Castor as Apache does not allow to use
>>>>>>>>  >>>>>>>>>>> any 3rd party
jar if the license is not on the "approved" list.
>>>>>>>>  >>>>>>>>>>> http://www.apache.org/legal/3party.html
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>> See more here
about contributing
>>>>>>>>  >>>>>>>>>>> http://camel.apache.org/contributing.html
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>> On Tue, Sep
22, 2009 at 5:04 PM, Sagara Gunathunga <sagaragu@gmail.com> wrote:
>>>>>>>>  >>>>>>>>>>>> Hi folks,
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> Since
last few months i used Camel as a routing engine and I'm very
>>>>>>>>  >>>>>>>>>>>> much happy
with it's features and i have created some new components
>>>>>>>>  >>>>>>>>>>>> according
to my previous project requirements. Among those components
>>>>>>>>  >>>>>>>>>>>> Camel-Castor
components is much more useful to me and I'm happy to
>>>>>>>>  >>>>>>>>>>>> contribute
for Castor components (datatype) for Apache Camel Project.
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> I have
created a small page to illustrate its usage [1] , If you guys
>>>>>>>>  >>>>>>>>>>>> are interested
in, I can contribute for this component.
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> [1] -
http://people.apache.org/~sagara/dev/camel/camel-castor/camel-castor.html
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> [2]- http://www.castor.org/
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> Thanks
,
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> --
>>>>>>>>  >>>>>>>>>>>> Sagara
Gunathunga
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>> Blog -
ssagara.blogspot.com
>>>>>>>>  >>>>>>>>>>>> Web -
http://people.apache.org/~sagara
>>>>>>>>  >>>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>> --
>>>>>>>>  >>>>>>>>>>> Claus Ibsen
>>>>>>>>  >>>>>>>>>>> Apache Camel
Committer
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>> Open Source
Integration: http://fusesource.com
>>>>>>>>  >>>>>>>>>>> Blog: http://davsclaus.blogspot.com/
>>>>>>>>  >>>>>>>>>>> Twitter: http://twitter.com/davsclaus
>>>>>>>>  >>>>>>>>>>>
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> --
>>>>>>>>  >>>>>>>>>> Sagara Gunathunga
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>> Blog - ssagara.blogspot.com
>>>>>>>>  >>>>>>>>>> Web - http://people.apache.org/~sagara
>>>>>>>>  >>>>>>>>>>
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>> --
>>>>>>>>  >>>>>>>>> Claus Ibsen
>>>>>>>>  >>>>>>>>> Apache Camel Committer
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>> Open Source Integration:
http://fusesource.com
>>>>>>>>  >>>>>>>>> Blog: http://davsclaus.blogspot.com/
>>>>>>>>  >>>>>>>>> Twitter: http://twitter.com/davsclaus
>>>>>>>>  >>>>>>>>>
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>> --
>>>>>>>>  >>>>>>>> Sagara Gunathunga
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>> Blog - ssagara.blogspot.com
>>>>>>>>  >>>>>>>> Web - http://people.apache.org/~sagara
>>>>>>>>  >>>>>>>>
>>>>>>>>  >>>>>>>
>>>>>>>>  >>>>>>>
>>>>>>>>  >>>>>>>
>>>>>>>>  >>>>>>> --
>>>>>>>>  >>>>>>> Claus Ibsen
>>>>>>>>  >>>>>>> Apache Camel Committer
>>>>>>>>  >>>>>>>
>>>>>>>>  >>>>>>> Open Source Integration: http://fusesource.com
>>>>>>>>  >>>>>>> Blog: http://davsclaus.blogspot.com/
>>>>>>>>  >>>>>>> Twitter: http://twitter.com/davsclaus
>>>>>>>>  >>>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>> --
>>>>>>>>  >>>>>> Sagara Gunathunga
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>> Blog - ssagara.blogspot.com
>>>>>>>>  >>>>>> Web - http://people.apache.org/~sagara
>>>>>>>>  >>>>>>
>>>>>>>>  >>>>>
>>>>>>>>  >>>>>
>>>>>>>>  >>>>>
>>>>>>>>  >>>>> --
>>>>>>>>  >>>>> Claus Ibsen
>>>>>>>>  >>>>> Apache Camel Committer
>>>>>>>>  >>>>>
>>>>>>>>  >>>>> Open Source Integration: http://fusesource.com
>>>>>>>>  >>>>> Blog: http://davsclaus.blogspot.com/
>>>>>>>>  >>>>> Twitter: http://twitter.com/davsclaus
>>>>>>>>  >>>>>
>>>>>>>>  >>>>
>>>>>>>>  >>>>
>>>>>>>>  >>>>
>>>>>>>>  >>>> --
>>>>>>>>  >>>> Sagara Gunathunga
>>>>>>>>  >>>>
>>>>>>>>  >>>> Blog - ssagara.blogspot.com
>>>>>>>>  >>>> Web - http://people.apache.org/~sagara
>>>>>>>>  >>>>
>>>>>>>>  >>>
>>>>>>>>  >>>
>>>>>>>>  >>>
>>>>>>>>  >>> --
>>>>>>>>  >>> Sagara Gunathunga
>>>>>>>>  >>>
>>>>>>>>  >>> Blog - ssagara.blogspot.com
>>>>>>>>  >>> Web - http://people.apache.org/~sagara
>>>>>>>>  >>>
>>>>>>>>  >>
>>>>>>>>  >>
>>>>>>>>  >>
>>>>>>>>  >> --
>>>>>>>>  >> Claus Ibsen
>>>>>>>>  >> Apache Camel Committer
>>>>>>>>  >>
>>>>>>>>  >> Open Source Integration: http://fusesource.com
>>>>>>>>  >> Blog: http://davsclaus.blogspot.com/
>>>>>>>>  >> Twitter: http://twitter.com/davsclaus
>>>>>>>>  >>
>>>>>>>>  >
>>>>>>>>  >
>>>>>>>>  >
>>>>>>>>  > --
>>>>>>>>  > Sagara Gunathunga
>>>>>>>>  >
>>>>>>>>  > Blog - ssagara.blogspot.com
>>>>>>>>  > Web - http://people.apache.org/~sagara
>>>>>>>>  >
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Claus Ibsen
>>>>>>>>  Apache Camel Committer
>>>>>>>>
>>>>>>>>  Open Source Integration: http://fusesource.com
>>>>>>>>  Blog: http://davsclaus.blogspot.com/
>>>>>>>>  Twitter: http://twitter.com/davsclaus
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Sagara Gunathunga
>>>>>>>
>>>>>>> Blog - ssagara.blogspot.com
>>>>>>> Web - http://people.apache.org/~sagara
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Claus Ibsen
>>>>>> Apache Camel Committer
>>>>>>
>>>>>> Open Source Integration: http://fusesource.com
>>>>>> Blog: http://davsclaus.blogspot.com/
>>>>>> Twitter: http://twitter.com/davsclaus
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sagara Gunathunga
>>>>>
>>>>> Blog - ssagara.blogspot.com
>>>>> Web - http://people.apache.org/~sagara
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Claus Ibsen
>>>> Apache Camel Committer
>>>>
>>>> Open Source Integration: http://fusesource.com
>>>> Blog: http://davsclaus.blogspot.com/
>>>> Twitter: http://twitter.com/davsclaus
>>>>
>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Blog - ssagara.blogspot.com
>>> Web - http://people.apache.org/~sagara
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - ssagara.blogspot.com
> Web - http://people.apache.org/~sagara
>



-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://people.apache.org/~sagara

Mime
View raw message