English 中文(简体)
骆驼 - 与现有应用相结合
原标题:Camel - Integrating with Existing Application

I currently work on a trading application that does not use camel. It essentially takes in trades, does some processing and sends the details to an external system.

我们现在需要与3个新的系统整合,为2个系统使用FTP,为1个系统使用JMS。

我想用骆驼来申请这些整合。 我读过一大批骆驼在行动,但我不清楚我们如何可以开走我们的骆驼路线。

从根本上说,我们不想过于大幅度地修改现有应用的任何部分,因为其生产效果良好。

In the existing application, we generate a Trade Value Object and its from this object that that I want to kick off our camel integration. I dont have a database table or jms queue where I can kick off the route from.

I had a quick look at the Chapter on Bean routing and remoting in the Camel in Action book but I wanted to get peoples advise first before proceeding with any steps. What would be the best approach for this integration?

Thanks Damien

最佳回答

您可以使用 callel s < a href=> "http://camel.apache.org/pojo-producting.html" rel="nofollow".html" rel="nofolpol.org/seda.html" rel="rel="rel="nofol.html" 直接:"rel=" a href="http://camel.apache.org/seda.html" rel="rel="nofolpol.org/seda.html" rel="nofollowing endpoint as a from&&\gt; part your way.

问题回答

Pojo像Konstantin V. Salikhov所说的那样生产。 但是,你需要确定你有一个春季应用程序,并且正在用春季或电线扫描你的豆子。

“如果豆类在春季XML中被定义,或使用春季部件扫描机扫描,并使用过一个或一个骆驼-BeanPostProcessor,那么我们处理一些骆驼说明,以便做诸如注射资源或制作、消费或路由信息等多种事情。”

如果您的应用程序会增加太多的更改, 您可以使用 < a href=" http:// camel. papache. org/ producertertemplet. html" rel = "nofollow" > produckerTemplate , 并直接引用一个端点 。

在此选择协议可能很重要。 直接协议是一个安全的选择, 因为管理费只是一种方法要求。 另外, 例外也会通过直接端点来传播, 交易也会这样。 由于SEDA的端点是非同步的( 和 JMS 一样), 但并不具有持久性, 发生崩溃时, 飞行数据有略微消失的可能性。 这也许不是问题。 但是, 高负荷时, SEDA 协议的阶段会更好, 并且您对负载峰的应用程序会更好抵制 。





相关问题
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 ...

热门标签