[
https://issues.apache.org/jira/browse/CAMEL-7126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883806#comment-13883806
]
Claus Ibsen commented on CAMEL-7126:
------------------------------------
The bam example fails compiling now
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile)
on project camel-example-bam: Compilation failure
[ERROR]
/Users/davsclaus/workspace/camel/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/MyActivities.java:[36,8]
error: no suitable constructor found for
ProcessBuilder(JpaTemplate,TransactionTemplate)
> BAM component is not working with Spring 4
> ------------------------------------------
>
> Key: CAMEL-7126
> URL: https://issues.apache.org/jira/browse/CAMEL-7126
> Project: Camel
> Issue Type: Sub-task
> Components: camel-bam
> Reporter: Henryk Konsek
> Assignee: Henryk Konsek
> Fix For: 2.13.0
>
>
> BAM component uses {{JpaTemplate}} class deprecated in Spring 3.1. As
> {{JpaTemplate}} has been removed in Spring 4, BAM component can't be compiled
> anymore.
> To reproduce the error execute the following command:
> {code}
> mvn clean install -Pspring4
> {code}
> We need to migrate BAM component to raw
> {{EntityManagerFactory}}/{{EntityManager}} API, as recommend by the Spring
> team.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)