﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-吴密的博客</title><link>http://www.blogjava.net/wumi9527/</link><description>每天进步一点点</description><language>zh-cn</language><lastBuildDate>Sun, 12 Apr 2026 06:06:49 GMT</lastBuildDate><pubDate>Sun, 12 Apr 2026 06:06:49 GMT</pubDate><ttl>60</ttl><item><title>serviceMiX入门三（Adding ActiveMQ to the 'Mix&amp;Optional featu</title><link>http://www.blogjava.net/wumi9527/archive/2015/04/10/424258.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Fri, 10 Apr 2015 07:37:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2015/04/10/424258.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/424258.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2015/04/10/424258.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/424258.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/424258.html</trackback:ping><description><![CDATA[<span left-pos="16|5" right-pos="16|5" space="" style="color: #333333; font-family: arial; line-height: 22px; background-color: #ffffff;">在本章我们介绍在serviceMIx 中图和使用 ActiveMQ、features命令，入门的3篇文章来自<br /><div>http://servicemix.apache.org/docs/5.0.x/quickstart/index.html，有兴趣的可以再去看看英文的。</div><br />ActiveMQ<br />&nbsp; &nbsp; 每个</span><span left-pos="22|17" right-pos="22|17" space="" style="color: #333333; font-family: arial; line-height: 22px; background-color: #ffffff;">Apache ServiceMix</span><span left-pos="40|8" right-pos="40|8" space="" style="color: #333333; font-family: arial; line-height: 22px; background-color: #ffffff;">的实例</span><span left-pos="49|13" right-pos="49|13" space="" style="color: #333333; font-family: arial; line-height: 22px; background-color: #ffffff;">是一个</span><span left-pos="63|8" right-pos="63|8" space="" style="color: #333333; font-family: arial; line-height: 22px; background-color: #ffffff;">嵌入式</span><span left-pos="72|12" right-pos="72|12" space="" style="color: #333333; font-family: arial; line-height: 22px; background-color: #ffffff;">activemq jms</span><span left-pos="85|6" right-pos="85|6" space="" style="background-color: #ffffff;"><font color="#333333" face="arial"><span style="line-height: 22px;">代理，这样可以很方便的在同一台机器上使用持久消息来通信，</span></font><br /><font color="#333333" face="arial"><span style="line-height: 22px;">但是它也支持集群和负载均衡。</span></font><br /><font color="#333333" face="arial"><span style="line-height: 22px;">&nbsp; &nbsp;在这个实例中，我们依然像上个例子一样，在2个目录中移动文件，把记录日志的部分改为发送一条jms消息到消息队列，</span></font><br /><font color="#333333" face="arial"><span style="line-height: 22px;">然后再创建一个新的route来接受事件并记录日志：</span></font><br /><div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div style="color: #000000; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: normal;"></div><div><div><span style="font-size: 13px; line-height: normal;">?xml version="1.0" encoding="UTF-8"?&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&lt;blueprint</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; xsi:schemaLocation="</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; http://www.osgi.org/xmlns/blueprint/v1.0.0</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"&gt;</span></div><div><span style="font-size: 13px; line-height: normal;"><br /></span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &lt;camelContext xmlns="http://camel.apache.org/schema/blueprint"&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &lt;route&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;from uri="file:activemq/input"/&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;to uri="file:activemq/output"/&gt;</span></div><div><span style="font-size: 13px; line-height: normal;"><br /></span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;setBody&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;simple&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileMovedEvent(file: ${file:name}, timestamp: ${date:now:hh:MM:ss.SSS})</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/simple&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/setBody&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;to uri="activemq://events" /&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &nbsp; &lt;/route&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&nbsp; &nbsp; &lt;/camelContext&gt;</span></div><div><span style="font-size: 13px; line-height: normal;">&lt;/blueprint&gt;</span></div></div><div style="color: #000000; font-family: Arial; font-size: 13px; line-height: normal;"></div></div><br />&nbsp; &nbsp;保存这个文件，并且放到serviceMix的deploy目录，会看到复制到&nbsp;<tt style="margin: 0px; font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal;">activemq/input</tt>&nbsp;目录中的文件被复制到&nbsp;<tt style="margin: 0px; font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal;">activemq/output</tt>&nbsp;<br /><br />&nbsp; &nbsp;接受消息<br />&nbsp; &nbsp;在第一个文件中，除了复制文件，你看不到任何的log记录。它发送了jms消息，但是没有接受者，我们可以创建一个route来接受消息：<br /><br /><div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: normal;"></div><div>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</div><div>&lt;blueprint</div><div>&nbsp; &nbsp; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"</div><div>&nbsp; &nbsp; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div><div>&nbsp; &nbsp; xsi:schemaLocation="</div><div>&nbsp; &nbsp; &nbsp; http://www.osgi.org/xmlns/blueprint/v1.0.0</div><div>&nbsp; &nbsp; &nbsp; http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"&gt;</div><div></div><div>&nbsp; &nbsp; &lt;camelContext xmlns="http://camel.apache.org/schema/blueprint"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;route&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;from uri="activemq://events"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;to uri="log:events"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/route&gt;</div><div>&nbsp; &nbsp; &lt;/camelContext&gt;</div><div>&lt;/blueprint&gt;</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: normal;"></div><div style="font-family: Arial; font-size: 13px; line-height: normal;"></div></div><br />&nbsp; 你可以通过log:display来查看日志消息。你可以通过osgi:start 和 osgi:stop来启动和关闭这个bundle.当你重启完第一个bundle后，你收到所有文件移动后发出<br />的消息事件。<br /><br />&nbsp; &nbsp; features命令<br /><br /><div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: normal;"></div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: normal;">karaf@root&gt; features:list | grep camel</div><div><div><span style="font-size: 13px; line-height: normal;">[uninstalled] [5.4.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ] examples-activiti-camel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; service</span><span style="font-size: 13px; line-height: normal;">mix-examples-5.4.0</span></div><div><span style="font-size: 13px; line-height: normal;">[uninstalled] [5.4.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ] examples-akka-camel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; service</span><span style="font-size: 13px; line-height: normal;">mix-examples-5.4.0<br /><br /><br /></span><font face="Courier, Courier, monospace"><span style="font-size: 12.8000001907349px; line-height: normal;">karaf@root&gt; features:install webconsole</span></font><br /><br /><div><span style="font-size: 12.8000001907349px; line-height: normal;">karaf@root&gt; features:list | grep webconsole</span></div><div><span style="font-size: 12.8000001907349px; line-height: normal;">[installed &nbsp;] [2.4.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ] webconsole &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;karaf-2</span></div><div><span style="font-size: 12.8000001907349px; line-height: normal;">.4.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Karaf WebConsole for administration and monitoring</span></div></div></div><div style="font-family: Arial; font-size: 13px; line-height: normal;"></div></div><br />&nbsp; &nbsp; 通过<span style="font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal; background-color: #eeeeee;">features:install webconsole可以安装&nbsp;</span><span style="font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal; background-color: #eeeeee;">&nbsp;webconsole bundle,成功后你可以通过&nbsp;</span><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">&nbsp;http://localhost:8181/system/console &nbsp;用户名密码：smx/smx来<br />登录</span>，可以通过浏览器来上传、启动，停止<span style="font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal; background-color: #eeeeee;">bundle。</span><br /><br /></span><img src ="http://www.blogjava.net/wumi9527/aggbug/424258.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2015-04-10 15:37 <a href="http://www.blogjava.net/wumi9527/archive/2015/04/10/424258.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>serviceMiX入门二(Routing with Camel)</title><link>http://www.blogjava.net/wumi9527/archive/2015/04/09/424254.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Thu, 09 Apr 2015 09:19:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2015/04/09/424254.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/424254.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2015/04/09/424254.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/424254.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/424254.html</trackback:ping><description><![CDATA[<div style="padding: 4px; margin-bottom: 14px;"><font face="Arial" style="font-size: 13px;"><span style="background-color: #ffffff;">本章我们通过一个简单的实例来介绍如何使用camel。<br />这个实例中，我们会把文件从目录</span></font><tt style="font-size: 12.8000001907349px; margin: 0px; font-family: Courier, Courier, monospace; line-height: normal;">camel/input</tt><span style="font-size: 12.8000001907349px; font-family: Verdana, Arial, sans-serif; line-height: normal;">&nbsp;移动到</span><span style="font-size: 12.8000001907349px; font-family: Courier, Courier, monospace; line-height: normal;">camel/output.为了方便我们跟踪哪些文件被移动，我们会记录日志。<br /><br /></span><div style="background-color: #ffffff;"><span style="font-size: 13px;">1、创建一个xml</span><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"><br /></span>在<span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">&nbsp;ServiceMix中定义一个新的</span><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">&nbsp;route，最简单的方式之一就是定义一个</span><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">Blueprint XML file，就像下边一样：<br /></span><br /><div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div style="font-size: 13px;"></div><div>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</div><div>&lt;blueprint</div><div>&nbsp; &nbsp; xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"</div><div>&nbsp; &nbsp; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div><div>&nbsp; &nbsp; xsi:schemaLocation="</div><div>&nbsp; &nbsp; &nbsp; http://www.osgi.org/xmlns/blueprint/v1.0.0</div><div>&nbsp; &nbsp; &nbsp; http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"&gt;</div><div></div><div>&nbsp; &nbsp; &lt;camelContext xmlns="http://camel.apache.org/schema/blueprint"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;route&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;from uri="file:camel/input"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;log message="Moving ${file:name} to the output directory"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;to uri="file:camel/output"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/route&gt;</div><div>&nbsp; &nbsp; &lt;/camelContext&gt;</div><div></div><div>&lt;/blueprint&gt;</div><div style="font-size: 13px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div style="font-size: 13px; font-family: Arial;"></div></div><span style="font-size: 13px;"><br />2.部署<br /></span>&nbsp; &nbsp;<span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">我们只需要将第一步创建的xml复制到serviceMix下的&nbsp;</span><span style="font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal;">deploy 目录，就会被</span><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">serviceMix 识别并部署。你会看到被放到</span><font face="Arial" style="font-size: 13px;">目录</font><tt style="font-size: 12.8000001907349px; margin: 0px; font-family: Courier, Courier, monospace; line-height: normal;">camel/input下的文件被<br /></tt><span style="font-size: 12.8000001907349px; font-family: Verdana, Arial, sans-serif; line-height: normal;">移动到</span><span style="font-size: 12.8000001907349px; font-family: Courier, Courier, monospace; line-height: normal;">camel/output，如果你使用log:display命令，会看到文件移动的日志：</span><br /><br /><div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div><span style="font-size: 13px;">2015-04-09 17:10:19,515 | INFO &nbsp;| le://camel/input | route1</span></div><div><span style="font-size: 13px;">&nbsp; &nbsp; &nbsp; | ? &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? | 116 - org.apache.camel.camel-cor</span></div><div><span style="font-size: 13px;">e - 2.14.1 | Moving test.xml.bak to the output directory</span></div></div><br /><span style="font-size: 13px;">3. 使用命令行管理&nbsp;</span><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">&nbsp;route</span><br />使用osgi:list,你会看到刚才我们部署的bundle<br /><div style="font-size: 13px; border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div></div><div>[ 221] [Active &nbsp; &nbsp; ] [Created &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 80] test.xml (0.0.0)</div></div>你会看到我们刚才部署的bundle ID是221,我们可以通过这个bundle ID来启动或者关闭bundle<br /><br /><div style="padding: 4px 5px 4px 4px; border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><div>karaf@root&gt; osgi:stop 221</div><div>karaf@root&gt; osgi:start 221</div></div></div></div><div id="AjaxHolder_UpdatePanel1"><div id="CommentsPersistDiv" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; line-height: normal; background-color: #ffffff;"></div></div><img src ="http://www.blogjava.net/wumi9527/aggbug/424254.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2015-04-09 17:19 <a href="http://www.blogjava.net/wumi9527/archive/2015/04/09/424254.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>serviceMiX入门一</title><link>http://www.blogjava.net/wumi9527/archive/2015/04/09/424251.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Thu, 09 Apr 2015 08:25:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2015/04/09/424251.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/424251.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2015/04/09/424251.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/424251.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/424251.html</trackback:ping><description><![CDATA[<span style="font-family: Arial; background-color: #ffffff;">本章我们主要介绍下如何安装</span>serviceMiX，使用命令来查看osgi bundles、日志。<br /><span style="font-family: Arial; background-color: #ffffff;"><br />1、下载</span>serviceMiX5.4.0<div style="background-color: #ffffff;">
<div style="font-family: Arial;">http://servicemix.apache.org/downloads.html<br />到下载页面选取：<br />
tar,gz&nbsp;<span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">&nbsp;for Linux/Unix/MacOS X<br />
zip for windows<br /><br />如果仅仅是运行</span><span style="font-family: verdana, 'courier new';">serviceMiX，你需要jre1.6.x 或者&nbsp;</span><span style="font-family: verdana, 'courier new';">jre1.7.x &nbsp;</span><span style="font-family: verdana, 'courier new';">serviceMiX5.4.0大概需要100M的空间</span><br />如果你要开发自己的一些集成应用和osgi bundles，你还需要安装 &nbsp;<span style="font-family: verdana, 'courier new';">jdk1.6.x 或者&nbsp;</span><span style="font-family: verdana, 'courier new';">jdk1.7.x &nbsp;apache maven3.0.4 或者更高的版本<br /></span><br /><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"><br /></span></div>
<div><font face="Arial">2.解压，指定</font><strong style="font-family: Verdana, Arial, sans-serif; margin: 0px; font-size: 12.8000001907349px; line-height: normal;"><tt style="margin: 0px; font-family: Courier, Courier, monospace; font-size: 1em;">&lt;SERVICEMIX_HOME&gt;</tt></strong><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">.<br />
</span><font face="Arial">解压，在环境变量中配置&nbsp;</font><strong style="font-family: Verdana, Arial, sans-serif; margin: 0px; font-size: 12.8000001907349px; line-height: normal;"><tt style="margin: 0px; font-family: Courier, Courier, monospace; font-size: 1em;">&lt;SERVICEMIX_HOME&gt;</tt></strong><span style="font-family: Verdana, Arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;">.例如：</span><font face="Arial">C:\apache-servicemix<br />
</font>
<div><br />
<font face="Arial">3.启动</font><span style="font-family: verdana, 'courier new';">serviceMiX（windows）<br /></span><br />
<div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;">
<div><span style="font-size: 13px;">C:\Users\Administrator&gt;cd c:\apache-servicemix\bin</span></div>
<div><span style="font-size: 13px;"><br />
</span></div>
<div><span style="font-size: 13px;">c:\apache-servicemix\bin&gt;servicemix</span></div>
<div><span style="font-size: 13px;">Please wait while Apache ServiceMix is starting...</span></div>
<div><span style="font-size: 13px;">&nbsp;27% [===================&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]</span></div>
<div><span style="font-size: 13px;"><br />
</span></div>
<div style="font-family: Arial; font-size: 13px;"></div>
</div>
<font face="Arial"><br />4.启动成功<br /></font><br />
<div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;">
<div>Please wait while Apache ServiceMix is starting...</div>
<div>100% [========================================================================]</div>
<div></div>
<div>&nbsp;____ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;__ &nbsp;__ _</div>
<div>/ ___| &nbsp;___ _ ____ &nbsp; _(_) ___ ___| &nbsp;\/ &nbsp;(_)_ &nbsp;__</div>
<div>\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /</div>
<div>&nbsp;___) | &nbsp;__/ | &nbsp; \ V /| | (_| &nbsp;__/ | &nbsp;| | |&gt; &nbsp;&lt;</div>
<div>|____/ \___|_| &nbsp; &nbsp;\_/ |_|\___\___|_| &nbsp;|_|_/_/\_\</div>
<div></div>
<div>&nbsp; Apache ServiceMix (5.4.0)</div>
<div></div>
<div>Hit '&lt;tab&gt;' for a list of available commands</div>
<div>and '[cmd] --help' for help on a specific command.</div>
<div>Hit '&lt;ctrl-d&gt;' or 'osgi:shutdown' to shutdown ServiceMix.</div>
</div>
<font face="Arial"><br />5.&nbsp;</font>使用命令&nbsp;<span style="background-color: #eeeeee;">osgi:list &nbsp;</span><span style="background-color: #eeeeee;">osgi:list|grep camel 查看</span><span style="font-family: Arial;">bundles&nbsp;<br /></span><br />
<div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;">
<div>karaf@root&gt; osgi:list</div>
<div>START LEVEL 100 , List Threshold: 50</div>
<div>&nbsp; &nbsp;ID &nbsp; State &nbsp; &nbsp; &nbsp; &nbsp; Blueprint &nbsp; &nbsp; &nbsp;Spring &nbsp; &nbsp;Level &nbsp;Name</div>
<div>[ &nbsp;81] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] geronimo-annotation_1.0_spec (1.1.1)</div>
<div>[ &nbsp;82] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] geronimo-jms_1.1_spec (1.1.1)</div>
<div>[ &nbsp;83] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] geronimo-j2ee-management_1.1_spec (1.0.1)</div>
<div>[ &nbsp;84] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] JAXB2 Basics - Runtime (0.6.4)</div>
<div>[ &nbsp;85] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] Apache ServiceMix :: Bundles :: jaxb-impl (2.2.1.1_2)</div>
<div><br />
<div>karaf@root&gt; osgi:list|grep camel</div>
<div>[ 116] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] camel-core (2.14.1)</div>
<div>[ 117] [Active &nbsp; &nbsp; ] [Created &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] camel-karaf-commands (2.14.1)</div>
<div>[ 118] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] camel-jms (2.14.1)</div>
<div>[ 124] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] camel-spring (2.14.1)</div>
<div>[ 125] [Active &nbsp; &nbsp; ] [Created &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; ] [ &nbsp; 50] camel-blueprint (2.14.1)</div>
</div>
</div>
<font face="Arial"><br />6.</font>使用<span style="font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal; background-color: #eeeeee;">log:display查看日志，其他&nbsp;</span><span style="font-family: Courier, Courier, monospace; font-size: 12.8000001907349px; line-height: normal; background-color: #eeeeee;">log:display-exception<br /><br /></span>
<div style="border: 1px solid #cccccc; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; padding: 4px 5px 4px 4px; width: 993.71875px; word-break: break-all; background-color: #eeeeee;"><font face="Arial"><span style="font-size: 13px;">karaf@root&gt; log:display</span></font><br />
<div><span style="font-size: 13px;">2015-04-09 16:09:07,433 | INFO &nbsp;| 0 - timer://wumi | timerToLog</span><span style="font-size: 13px;">&nbsp; | ? &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? | 116 - org.apache.camel.camel-cor</span></div>
<div><span style="font-size: 13px;">e - 2.14.1 | The message contains Hi from Camel at 2015-04-09 16:09:07<br />
</span></div>
</div>
</div>
</div>
</div><img src ="http://www.blogjava.net/wumi9527/aggbug/424251.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2015-04-09 16:25 <a href="http://www.blogjava.net/wumi9527/archive/2015/04/09/424251.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql客户端连接服务端缓慢</title><link>http://www.blogjava.net/wumi9527/archive/2015/04/01/424036.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Wed, 01 Apr 2015 09:24:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2015/04/01/424036.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/424036.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2015/04/01/424036.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/424036.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/424036.html</trackback:ping><description><![CDATA[<div>今天下午发现mysql客户端连接服务端缓慢，windows 环境下，到目录 MYSQL_HOME/my.ini 中加入：skip-name-resolve，<span style="font-family: Tahoma, Helvetica, Arial, 宋体, sans-serif; line-height: 25.2000007629395px; background-color: #f7fcff;">然后保存并重启mysql服务</span><br /><br />问题解决。<br /><br /><span style="color: #333333; font-family: arial, 宋体; line-height: 26px; background-color: #f5f8fd;">查阅mysql官方网站得知，这属于官方一个系统上的特殊设定，就把他当成mysql的一个bug算了，不管链接的的方式是经过 hosts 或是 IP 的模式，他都会对 DNS<br /> 做反查。mysqld 会尝试去反查 IP -&gt; dns ，由于反查解析过慢，就会无法应付过量的查询。</span><br /><br /><br /><br /><br /></div><img src ="http://www.blogjava.net/wumi9527/aggbug/424036.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2015-04-01 17:24 <a href="http://www.blogjava.net/wumi9527/archive/2015/04/01/424036.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Android 客户端资料（整理防丢）</title><link>http://www.blogjava.net/wumi9527/archive/2011/01/18/343127.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Tue, 18 Jan 2011 01:50:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2011/01/18/343127.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/343127.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2011/01/18/343127.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/343127.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/343127.html</trackback:ping><description><![CDATA[布局介绍：<br />
http://penguin7.blog.51cto.com/966026/222075<br />
<br />
<br />
签名介绍：<br />
<br />
<div><a href="http://blog.csdn.net/duandianGG/archive/2010/07/21/5752568.aspx">http://blog.csdn.net/duandianGG/archive/2010/07/21/5752568.aspx</a></div>
<img src ="http://www.blogjava.net/wumi9527/aggbug/343127.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2011-01-18 09:50 <a href="http://www.blogjava.net/wumi9527/archive/2011/01/18/343127.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>团队收款内侧，有兴趣的可以向我索取邀请码</title><link>http://www.blogjava.net/wumi9527/archive/2011/01/07/342529.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Fri, 07 Jan 2011 09:37:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2011/01/07/342529.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/342529.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2011/01/07/342529.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/342529.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/342529.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1、访问we.alipay.com ，使用支付宝账户登录，输入团体收款“邀请码”（我们定向派发了第一批邀请码300个）开通团长功能。    <br><br>2、体验一下“团体收款”的各种功能，不管是不爽，还是满意，都请您提交“用户反馈”：       <br>      Ø  可以试试创建一个团体，拉你的好友成为团员；     <br>      Ø  可以在成功创建团体后，试着发起各类活动收款；  <br>      Ø  您会经常在哪些活动中遇到和使用一对多的团体收款？ <br>      Ø  您身边使用支付宝的好友多吗？ <br>      Ø  我们这个新生产品可以帮助您把团体活动收款变简单吗？<br>QQ： 908820222&nbsp;&nbsp;<a href='http://www.blogjava.net/wumi9527/archive/2011/01/07/342529.html'>阅读全文</a><img src ="http://www.blogjava.net/wumi9527/aggbug/342529.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2011-01-07 17:37 <a href="http://www.blogjava.net/wumi9527/archive/2011/01/07/342529.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>系统内存泄露（防丢）</title><link>http://www.blogjava.net/wumi9527/archive/2011/01/06/342448.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Thu, 06 Jan 2011 10:38:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2011/01/06/342448.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/342448.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2011/01/06/342448.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/342448.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/342448.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.blogjava.net/wumi9527/archive/2011/01/06/342448.html'>阅读全文</a><img src ="http://www.blogjava.net/wumi9527/aggbug/342448.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2011-01-06 18:38 <a href="http://www.blogjava.net/wumi9527/archive/2011/01/06/342448.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>转载--最佳编码实践：搞砸代码的10种方法</title><link>http://www.blogjava.net/wumi9527/archive/2010/12/06/339877.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Mon, 06 Dec 2010 01:34:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2010/12/06/339877.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/339877.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2010/12/06/339877.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/339877.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/339877.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 写代码是一个富有创意但又可能让人思想麻痹的任务，不管你是否喜欢你的工作，你总会找一些捷径，但遗憾的是，大部分捷径都违反了最佳编码实践原则，这些捷径要么会产生BUG，要么会导致数据出错，我的建议是：在编写VBA代码时，不要走捷径。下面是一些常见的错误观念，导致人们选择了错误的捷径，虽然其中一部分只适用于VBA或某种IDE，但大多数都是通用的&nbsp;&nbsp;<a href='http://www.blogjava.net/wumi9527/archive/2010/12/06/339877.html'>阅读全文</a><img src ="http://www.blogjava.net/wumi9527/aggbug/339877.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2010-12-06 09:34 <a href="http://www.blogjava.net/wumi9527/archive/2010/12/06/339877.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Jmock使用小结</title><link>http://www.blogjava.net/wumi9527/archive/2010/09/29/333350.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Wed, 29 Sep 2010 05:27:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2010/09/29/333350.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/333350.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2010/09/29/333350.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/333350.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/333350.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 使用Jmock时，如果给的类型不是一个接口的时候，会抛出一个异常xxx is not an interface。其实根据Jmock的文档，只要稍作修改，就可以解决这个问题。<br>&nbsp;&nbsp;<a href='http://www.blogjava.net/wumi9527/archive/2010/09/29/333350.html'>阅读全文</a><img src ="http://www.blogjava.net/wumi9527/aggbug/333350.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2010-09-29 13:27 <a href="http://www.blogjava.net/wumi9527/archive/2010/09/29/333350.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>threadLocal--简单本地缓存</title><link>http://www.blogjava.net/wumi9527/archive/2010/09/10/331654.html</link><dc:creator>xiaolang</dc:creator><author>xiaolang</author><pubDate>Fri, 10 Sep 2010 05:44:00 GMT</pubDate><guid>http://www.blogjava.net/wumi9527/archive/2010/09/10/331654.html</guid><wfw:comment>http://www.blogjava.net/wumi9527/comments/331654.html</wfw:comment><comments>http://www.blogjava.net/wumi9527/archive/2010/09/10/331654.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wumi9527/comments/commentRss/331654.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wumi9527/services/trackbacks/331654.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 使用threadLoca做一个简单的本地缓存l&nbsp;&nbsp;<a href='http://www.blogjava.net/wumi9527/archive/2010/09/10/331654.html'>阅读全文</a><img src ="http://www.blogjava.net/wumi9527/aggbug/331654.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wumi9527/" target="_blank">xiaolang</a> 2010-09-10 13:44 <a href="http://www.blogjava.net/wumi9527/archive/2010/09/10/331654.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>