English 中文(简体)
帕奇·卡马特问题
原标题:Apache Camel scripting problem

我与Camel阿帕帕奇积极马克有着非常奇怪的问题,我用 j和gro子对例子进行了尝试,但两者都产生错误,“未能安装路线:由于无法找到语言,无法建造路线......:

缩略语

<route>
    <from uri="queue:foo"/>
    <filter>
        <groovy>request.lineItems.any { i -> i.value > 100 }</groovy>
        <to uri="queue:bar"/>
    </filter>
</route>

Java本也存在同样的问题。 该作品的唯一文字是“Simple”――Camel内部文字。 请就如何解决这一问题提出建议。 我正在使用“积极MQ”5.2.4和“综合帕帕奇”2.4.0。

最佳回答

Yeah, 您需要从 came本和选择的描述性语言中添加联合倡议,例如,需要农作联合倡议。 如果你管理AAMQ,你就应该把他们放在校服上。

问题回答

是否履行了对 came的依赖?

例如,在晚期,将宣布为:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-script</artifactId>
    <version>2.6.0</version>
</dependency>

在<条码>和>中; 独立性和效力;声明。

I added artifact camel-groovy because camel-script didn t work for me.

<dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-groovy</artifactId>
        <version>2.23.0</version>
</dependency>




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签