You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Willem Jiang <wi...@gmail.com> on 2014/09/12 03:47:35 UTC

Switch the default Spring version to Spring 4.x

Hi,

Because spring-test 4.x is not backward compatible, we have to create camel-test-spring and camel-test-spring3 module for spring 4.x and spring 3.x.

Current camel default version of Spring is 3.2.x, if not easy for the user who still want to camel-test-spring to upgrade.

So my suggestion is we switch the default version of spring to 4.x, and ask the user to manage the all the spring dependency in his pom.

Any thought?
 

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem




Re: Switch the default Spring version to Spring 4.x

Posted by Matt Sicker <bo...@gmail.com>.
I totally mean for 2.15 at the earliest! :)

On 14 September 2014 13:22, Christian Müller <ch...@gmail.com>
wrote:

> Matt, adding 6 new components (lot of work) in last minute? I don't thinks
> is a good idea.
> Let's do the upgrade in Camel 2.15.0.
> And if you are using Camel in standalone or not in in an OSGI container, it
> shouldn't be to difficult to use Camel 2.14.0 with Spring 4.
>
> Best,
> 5
> Am 14.09.2014 19:01 schrieb "Matt Sicker" <bo...@gmail.com>:
>
> > Would it be a good idea to create new components for Spring 4 while still
> > having the Spring 3 versions? Similar to the HttpClient component.
> >
> > On 14 September 2014 10:47, Claus Ibsen <cl...@gmail.com> wrote:
> >
> > > Hi
> > >
> > > Yeah I frankly also had a bit doubt whether the upgrade was a good
> > > idea as the change is last minute.
> > >
> > > I have logged a ticket about the change of default and set its target
> > > to Camel 2.15.
> > >
> > > I am +1 on Muellers suggestion.
> > >
> > >
> > > On Sun, Sep 14, 2014 at 3:29 PM, Christian Müller
> > > <ch...@gmail.com> wrote:
> > > > Today I checked the current trunk (2.15-SNAPSHOT) and realized that 6
> > > > components will not work with Spring 4 nicely at present:
> > > > - camel-spring-ws
> > > > - camel-spring-security
> > > > - camel-spring-redis
> > > > - camel-spring-integration
> > > > - camel-spring-batch
> > > > - camel-olingo2
> > > >
> > > > I suggest to stick to Spring 3.2.x for Camel 2.14.0 and do the
> Spring 4
> > > > upgrade (4.0.x or 4.1.x) in Camel 2.15.0.
> > > >
> > > > Best,
> > > > Christian
> > > > -----------------
> > > >
> > > > Software Integration Specialist
> > > >
> > > > Apache Member
> > > > V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> > > > Apache Incubator PMC Member
> > > >
> > > > https://www.linkedin.com/pub/christian-mueller/11/551/642
> > > >
> > > > On Fri, Sep 12, 2014 at 3:47 AM, Willem Jiang <
> willem.jiang@gmail.com>
> > > > wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> Because spring-test 4.x is not backward compatible, we have to
> create
> > > >> camel-test-spring and camel-test-spring3 module for spring 4.x and
> > > spring
> > > >> 3.x.
> > > >>
> > > >> Current camel default version of Spring is 3.2.x, if not easy for
> the
> > > user
> > > >> who still want to camel-test-spring to upgrade.
> > > >>
> > > >> So my suggestion is we switch the default version of spring to 4.x,
> > and
> > > >> ask the user to manage the all the spring dependency in his pom.
> > > >>
> > > >> Any thought?
> > > >>
> > > >>
> > > >> --
> > > >> Willem Jiang
> > > >>
> > > >> Red Hat, Inc.
> > > >> Web: http://www.redhat.com
> > > >> Blog: http://willemjiang.blogspot.com (English)
> > > >> http://jnn.iteye.com (Chinese)
> > > >> Twitter: willemjiang
> > > >> Weibo: 姜宁willem
> > > >>
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > Red Hat, Inc.
> > > Email: cibsen@redhat.com
> > > Twitter: davsclaus
> > > Blog: http://davsclaus.com
> > > Author of Camel in Action: http://www.manning.com/ibsen
> > > hawtio: http://hawt.io/
> > > fabric8: http://fabric8.io/
> > >
> >
> >
> >
> > --
> > Matt Sicker <bo...@gmail.com>
> >
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Switch the default Spring version to Spring 4.x

Posted by Christian Müller <ch...@gmail.com>.
Matt, adding 6 new components (lot of work) in last minute? I don't thinks
is a good idea.
Let's do the upgrade in Camel 2.15.0.
And if you are using Camel in standalone or not in in an OSGI container, it
shouldn't be to difficult to use Camel 2.14.0 with Spring 4.

Best,
5
Am 14.09.2014 19:01 schrieb "Matt Sicker" <bo...@gmail.com>:

> Would it be a good idea to create new components for Spring 4 while still
> having the Spring 3 versions? Similar to the HttpClient component.
>
> On 14 September 2014 10:47, Claus Ibsen <cl...@gmail.com> wrote:
>
> > Hi
> >
> > Yeah I frankly also had a bit doubt whether the upgrade was a good
> > idea as the change is last minute.
> >
> > I have logged a ticket about the change of default and set its target
> > to Camel 2.15.
> >
> > I am +1 on Muellers suggestion.
> >
> >
> > On Sun, Sep 14, 2014 at 3:29 PM, Christian Müller
> > <ch...@gmail.com> wrote:
> > > Today I checked the current trunk (2.15-SNAPSHOT) and realized that 6
> > > components will not work with Spring 4 nicely at present:
> > > - camel-spring-ws
> > > - camel-spring-security
> > > - camel-spring-redis
> > > - camel-spring-integration
> > > - camel-spring-batch
> > > - camel-olingo2
> > >
> > > I suggest to stick to Spring 3.2.x for Camel 2.14.0 and do the Spring 4
> > > upgrade (4.0.x or 4.1.x) in Camel 2.15.0.
> > >
> > > Best,
> > > Christian
> > > -----------------
> > >
> > > Software Integration Specialist
> > >
> > > Apache Member
> > > V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> > > Apache Incubator PMC Member
> > >
> > > https://www.linkedin.com/pub/christian-mueller/11/551/642
> > >
> > > On Fri, Sep 12, 2014 at 3:47 AM, Willem Jiang <wi...@gmail.com>
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> Because spring-test 4.x is not backward compatible, we have to create
> > >> camel-test-spring and camel-test-spring3 module for spring 4.x and
> > spring
> > >> 3.x.
> > >>
> > >> Current camel default version of Spring is 3.2.x, if not easy for the
> > user
> > >> who still want to camel-test-spring to upgrade.
> > >>
> > >> So my suggestion is we switch the default version of spring to 4.x,
> and
> > >> ask the user to manage the all the spring dependency in his pom.
> > >>
> > >> Any thought?
> > >>
> > >>
> > >> --
> > >> Willem Jiang
> > >>
> > >> Red Hat, Inc.
> > >> Web: http://www.redhat.com
> > >> Blog: http://willemjiang.blogspot.com (English)
> > >> http://jnn.iteye.com (Chinese)
> > >> Twitter: willemjiang
> > >> Weibo: 姜宁willem
> > >>
> > >>
> > >>
> > >>
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email: cibsen@redhat.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> > hawtio: http://hawt.io/
> > fabric8: http://fabric8.io/
> >
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>

Re: Switch the default Spring version to Spring 4.x

Posted by Matt Sicker <bo...@gmail.com>.
Would it be a good idea to create new components for Spring 4 while still
having the Spring 3 versions? Similar to the HttpClient component.

On 14 September 2014 10:47, Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> Yeah I frankly also had a bit doubt whether the upgrade was a good
> idea as the change is last minute.
>
> I have logged a ticket about the change of default and set its target
> to Camel 2.15.
>
> I am +1 on Muellers suggestion.
>
>
> On Sun, Sep 14, 2014 at 3:29 PM, Christian Müller
> <ch...@gmail.com> wrote:
> > Today I checked the current trunk (2.15-SNAPSHOT) and realized that 6
> > components will not work with Spring 4 nicely at present:
> > - camel-spring-ws
> > - camel-spring-security
> > - camel-spring-redis
> > - camel-spring-integration
> > - camel-spring-batch
> > - camel-olingo2
> >
> > I suggest to stick to Spring 3.2.x for Camel 2.14.0 and do the Spring 4
> > upgrade (4.0.x or 4.1.x) in Camel 2.15.0.
> >
> > Best,
> > Christian
> > -----------------
> >
> > Software Integration Specialist
> >
> > Apache Member
> > V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> > Apache Incubator PMC Member
> >
> > https://www.linkedin.com/pub/christian-mueller/11/551/642
> >
> > On Fri, Sep 12, 2014 at 3:47 AM, Willem Jiang <wi...@gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> Because spring-test 4.x is not backward compatible, we have to create
> >> camel-test-spring and camel-test-spring3 module for spring 4.x and
> spring
> >> 3.x.
> >>
> >> Current camel default version of Spring is 3.2.x, if not easy for the
> user
> >> who still want to camel-test-spring to upgrade.
> >>
> >> So my suggestion is we switch the default version of spring to 4.x, and
> >> ask the user to manage the all the spring dependency in his pom.
> >>
> >> Any thought?
> >>
> >>
> >> --
> >> Willem Jiang
> >>
> >> Red Hat, Inc.
> >> Web: http://www.redhat.com
> >> Blog: http://willemjiang.blogspot.com (English)
> >> http://jnn.iteye.com (Chinese)
> >> Twitter: willemjiang
> >> Weibo: 姜宁willem
> >>
> >>
> >>
> >>
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Switch the default Spring version to Spring 4.x

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah I frankly also had a bit doubt whether the upgrade was a good
idea as the change is last minute.

I have logged a ticket about the change of default and set its target
to Camel 2.15.

I am +1 on Muellers suggestion.


On Sun, Sep 14, 2014 at 3:29 PM, Christian Müller
<ch...@gmail.com> wrote:
> Today I checked the current trunk (2.15-SNAPSHOT) and realized that 6
> components will not work with Spring 4 nicely at present:
> - camel-spring-ws
> - camel-spring-security
> - camel-spring-redis
> - camel-spring-integration
> - camel-spring-batch
> - camel-olingo2
>
> I suggest to stick to Spring 3.2.x for Camel 2.14.0 and do the Spring 4
> upgrade (4.0.x or 4.1.x) in Camel 2.15.0.
>
> Best,
> Christian
> -----------------
>
> Software Integration Specialist
>
> Apache Member
> V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> Apache Incubator PMC Member
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
> On Fri, Sep 12, 2014 at 3:47 AM, Willem Jiang <wi...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Because spring-test 4.x is not backward compatible, we have to create
>> camel-test-spring and camel-test-spring3 module for spring 4.x and spring
>> 3.x.
>>
>> Current camel default version of Spring is 3.2.x, if not easy for the user
>> who still want to camel-test-spring to upgrade.
>>
>> So my suggestion is we switch the default version of spring to 4.x, and
>> ask the user to manage the all the spring dependency in his pom.
>>
>> Any thought?
>>
>>
>> --
>> Willem Jiang
>>
>> Red Hat, Inc.
>> Web: http://www.redhat.com
>> Blog: http://willemjiang.blogspot.com (English)
>> http://jnn.iteye.com (Chinese)
>> Twitter: willemjiang
>> Weibo: 姜宁willem
>>
>>
>>
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: Switch the default Spring version to Spring 4.x

Posted by Willem Jiang <wi...@gmail.com>.
I hit some issues when running the osgi tests, as some spring-xxx component doesn’t setup the version rang for Spring 4.x so it confuse the OSGi platform to wire the spring package for camel-spring. 

But from the test report with Spring4 profile enabled, we could declare that Camel 2.14.0 supports Spring4 out of box.

I will revert this last minute change in camel-2.14.x branch to fix the test failures.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On September 14, 2014 at 9:29:42 PM, Christian Müller (christian.mueller@gmail.com) wrote:
> Today I checked the current trunk (2.15-SNAPSHOT) and realized that 6
> components will not work with Spring 4 nicely at present:
> - camel-spring-ws
> - camel-spring-security
> - camel-spring-redis
> - camel-spring-integration
> - camel-spring-batch
> - camel-olingo2
>  
> I suggest to stick to Spring 3.2.x for Camel 2.14.0 and do the Spring 4
> upgrade (4.0.x or 4.1.x) in Camel 2.15.0.
>  
> Best,
> Christian
> -----------------
>  
> Software Integration Specialist
>  
> Apache Member
> V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> Apache Incubator PMC Member
>  
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>  
> On Fri, Sep 12, 2014 at 3:47 AM, Willem Jiang  
> wrote:
>  
> > Hi,
> >
> > Because spring-test 4.x is not backward compatible, we have to create
> > camel-test-spring and camel-test-spring3 module for spring 4.x and spring
> > 3.x.
> >
> > Current camel default version of Spring is 3.2.x, if not easy for the user
> > who still want to camel-test-spring to upgrade.
> >
> > So my suggestion is we switch the default version of spring to 4.x, and
> > ask the user to manage the all the spring dependency in his pom.
> >
> > Any thought?
> >
> >
> > --
> > Willem Jiang
> >
> > Red Hat, Inc.
> > Web: http://www.redhat.com
> > Blog: http://willemjiang.blogspot.com (English)
> > http://jnn.iteye.com (Chinese)
> > Twitter: willemjiang
> > Weibo: 姜宁willem
> >
> >
> >
> >
>  


Re: Switch the default Spring version to Spring 4.x

Posted by Christian Müller <ch...@gmail.com>.
Today I checked the current trunk (2.15-SNAPSHOT) and realized that 6
components will not work with Spring 4 nicely at present:
- camel-spring-ws
- camel-spring-security
- camel-spring-redis
- camel-spring-integration
- camel-spring-batch
- camel-olingo2

I suggest to stick to Spring 3.2.x for Camel 2.14.0 and do the Spring 4
upgrade (4.0.x or 4.1.x) in Camel 2.15.0.

Best,
Christian
-----------------

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

https://www.linkedin.com/pub/christian-mueller/11/551/642

On Fri, Sep 12, 2014 at 3:47 AM, Willem Jiang <wi...@gmail.com>
wrote:

> Hi,
>
> Because spring-test 4.x is not backward compatible, we have to create
> camel-test-spring and camel-test-spring3 module for spring 4.x and spring
> 3.x.
>
> Current camel default version of Spring is 3.2.x, if not easy for the user
> who still want to camel-test-spring to upgrade.
>
> So my suggestion is we switch the default version of spring to 4.x, and
> ask the user to manage the all the spring dependency in his pom.
>
> Any thought?
>
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
>

Re: Switch the default Spring version to Spring 4.x

Posted by Matt Sicker <bo...@gmail.com>.
Seems reasonable as Spring 4.x is mostly 3.x compatible, too (other than
deprecated things from Spring 2.x which are gone).


On 11 September 2014 20:47, Willem Jiang <wi...@gmail.com> wrote:

> Hi,
>
> Because spring-test 4.x is not backward compatible, we have to create
> camel-test-spring and camel-test-spring3 module for spring 4.x and spring
> 3.x.
>
> Current camel default version of Spring is 3.2.x, if not easy for the user
> who still want to camel-test-spring to upgrade.
>
> So my suggestion is we switch the default version of spring to 4.x, and
> ask the user to manage the all the spring dependency in his pom.
>
> Any thought?
>
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
>


-- 
Matt Sicker <bo...@gmail.com>