camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel-hibernate example problem
Date Tue, 30 Apr 2013 07:33:21 GMT
Hi

Spring 3.2 is not compatible with Hibernate 3.x anymore. It requires
Hibernate 4.x.

There is a new/updated camel-hibernate component in Camel Extra that
uses Hibernate 4.x.
https://code.google.com/a/apache-extras.org/p/camel-extra/?redir=1

The source is here
https://code.google.com/a/apache-extras.org/p/camel-extra/source/browse/#svn%2Ftrunk%2Fcomponents%2Fcamel-hibernate

The camel-extra 2.11.0 hasn't been released yet, so you may need to
build from the source.


On Tue, Apr 30, 2013 at 9:24 AM, lmanchanda75 <lmanchanda75@gmail.com> wrote:
> The original message got all mixed up, so putting it up again:
>
>
> Hi , I am trying to run the example on camel hibernate from camel-extra
> source on code.google, I got the code from trunk. The camel-context.xml is
> using hibernat4 for transaction manager and session factory,
>
> *<bean id="transactionManager"
> class="org.springframework.orm.hibernate4.HibernateTransactionManager">*
>
> *<bean id="sessionFactory"
> class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">*
>
> while camel-hibernate latest component (2.10.1) depends on hibernate
> 3.6.10.final as depicted in the dependency graph below. So I get method not
> found exceptions. Am I missing something? or Should I change the
> camel-context to use earlier versions of hibernate
>
>
> The following files have been resolved:
> [INFO]    antlr:antlr:jar:2.7.6:compile
> [INFO]    aopalliance:aopalliance:jar:1.0:compile
> [INFO]    commons-collections:commons-collections:jar:3.1:compile
> [INFO]    commons-dbcp:commons-dbcp:jar:1.4:compile
> [INFO]    commons-logging:commons-logging:jar:1.1.1:compile
> [INFO]    commons-pool:commons-pool:jar:1.5.4:compile
> [INFO]    dom4j:dom4j:jar:1.6.1:compile
> [INFO]    javax.transaction:jta:jar:1.1:compile
> [INFO]    log4j:log4j:jar:1.2.17:compile
> [INFO]    org.apache-extras.camel-extra:camel-hibernate:jar:2.10.1:compile
> [INFO]    org.apache.camel:camel-core:jar:2.10.1:compile
> [INFO]    org.apache.camel:camel-spring:jar:2.10.1:compile
> [INFO]    org.apache.derby:derby:jar:10.9.1.0:compile
> [INFO]
> org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.12.1.GA_3:compile
> [INFO]
> org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
> [INFO] *   org.hibernate:hibernate-core:jar:3.6.10.Final:compile*
> [INFO]
> org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
> [INFO]    org.slf4j:slf4j-api:jar:1.7.5:compile
> [INFO]    org.slf4j:slf4j-log4j12:jar:1.7.5:compile
> [INFO]    org.springframework:spring-aop:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-asm:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-context:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-core:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-expression:jar:3.0.7.RELEASE:compile
> [INFO]    org.springframework:spring-jdbc:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-orm:jar:3.2.0.RELEASE:compile
> [INFO]    org.springframework:spring-tx:jar:3.2.0.RELEASE:compile
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-hibernate-example-problem-tp5731769p5731770.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message