简体   繁体   English

从Java中的camel路由获取可视化文档?

[英]Get visual documentation from camel routes in Java?

I'm new to apache camel and made some routes working properly via Java DSL. 我是apache camel的新手,并通过Java DSL使一些路由正常工作。

Now I'm wondering if there is a chance to get automatic a visual representation of these routes with JBoss Fuse? 现在我想知道是否有机会使用JBoss Fuse自动显示这些路径的可视化表示?

I mean not by drawing it by hand again, more for automatic documention :-) 我的意思不是再用手工绘制,更多用于自动文档:-)

Edit: Since a downvote seems to be easier than a answer I try to rephrase my question a bit. 编辑: 由于downvote似乎比答案更容易,我试着稍微改写一下我的问题。
I'm looking for a possibility to reverse engineer my defined routes (Java) and get a picture with boxes out of it. 我正在寻找一种可能对我定义的路线(Java)进行逆向工程并从中获取带有框的图片。

Hawtoi, what I tried before, gives a beautiful result but also a lot of other stuff I don't need for my documentation. Hawtoi,我以前尝试过的,给出了一个漂亮的结果,但也提供了许多其他我不需要的文档。
Therefore I took a look at JBoss Fuse. 因此,我看了一下JBoss Fuse。 But here I can only draw my processes and save them as a blueprint.xml. 但是在这里我只能绘制我的进程并将它们保存为blueprint.xml。 Is the way from Java code to blueprint.xml not possible in JBoss Fuse? 在JBoss Fuse中,从Java代码到bl​​ueprint.xml的方式是不可能的? Do I miss something? 我错过了什么吗?

The JBoss Camel Developer Tools for Eclipse can visualize Camel routes loaded from XML files. 用于Eclipse的JBoss Camel开发人员工具可以可视化从XML文件加载的Camel路由。 You can then save those diagrams etc for documentation purposes. 然后,您可以保存这些图表等以用于文档目的。

It does not yet work with Java routes, but they have talked about adding support for that in the future. 它还没有与Java路由一起使用,但是他们已经讨论了将来添加对它的支持。 Mind Java is harder as its Java code and end users can do a lot of other stuff than just regular Camel routing so parsing that to visual diagram is harder than XML. Mind Java更难,因为它的Java代码和最终用户可以做很多其他的东西而不仅仅是常规的Camel路由,因此将其解析为可视化图比XML更难。

https://tools.jboss.org/features/apachecamel.html https://tools.jboss.org/features/apachecamel.html

But at this moment of writing there is no tool to visualize Camel routes from Java DSL. 但在撰写本文时,没有工具可以从Java DSL可视化Camel路由。

The Apache Camel IDEA plugin has a ticket to see if we can add route visualization for XML and Java in the future: https://github.com/camel-idea-plugin/camel-idea-plugin/issues/27 Apache Camel IDEA插件有一张票,可以看看我们是否可以在以后添加XML和Java的路由可视化: https//github.com/camel-idea-plugin/camel-idea-plugin/issues/27

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM