servicemix-4.5.3 启动日志

karaf@root> log:display

2015-01-12 10:48:03,950 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 66 - org.apache.xbean.blueprint- 3.11.1 |

Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapter due to org/apache/activeio/journal/JournalEventListener

 

2015-01-12 10:48:03,951 | INFO  | Thread-5         | ContextLoaderListener            | 82 - org.springframework.osgi.extender - 1.2.1 |

Starting [org.springframework.osgi.extender] bundle v.[1.2.1]

 

2015-01-12 10:48:03,952 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 66 - org.apache.xbean.blueprint- 3.11.1 |

Could not load class: org.apache.activemq.store.leveldb.LevelDBPersistenceAdapter

 

2015-01-12 10:48:03,973 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 66 - org.apache.xbean.blueprint- 3.11.1 |

Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapterFactory due to org/apache/activeio/journal/active/JournalLockedException

 

 

2015-01-12 10:48:03,984 | WARN  | Thread-5         | NamespaceManager                 | 82 - org.springframework.osgi.ex tender - 1.2.1 |

Bundle activemq-ra (org.apache.activemq.activemq-ra) cannot see class [org.spring

framework.beans.factory.xml.NamespaceHandlerResolver]; ignoring its namespace handlers

 

2015-01-12 10:48:04,053 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 66 - org.apache.xbean.blueprint- 3.11.1 |

Could not load class: org.apache.activemq.store.PersistenceAdapterFactoryBean due to org/apache/activeio/journal/active/JournalLockedException

 

 

2015-01-12 10:48:04,106 | INFO  | Thread-5         | ExtenderConfiguration            | 82 - org.springframework.osgi.ex tender - 1.2.1 |

No custom extender configuration detected; using defaults...

 

 

2015-01-12 10:48:04,128 | INFO  | Thread-5         | TimerTaskExecutor                | 73 - org.springframework.context - 3.0.7.RELEASE |Initializing Timer

 

 

2015-01-12 10:48:04,976 | INFO  | rint Extender: 1 | PListStore                       | 64 - org.apache.activemq.activem q-core - 5.7.0 |

PListStore:[D:\osesbinaction\esb\apache-servicemix-4.5.3\data\activemq\default\default\tmp_storage] started

 

 

2015-01-12 10:48:04,986 | INFO  | rint Extender: 1 | BrokerService                    | 64 - org.apache.activemq.activem q-core - 5.7.0 |

Using Persistence Adapter: KahaDBPersistenceAdapter[D:\osesbinaction\esb\apache-servicemix-4.5.3\data\activemq\default\kahadb]

 

 

2015-01-12 10:48:05,224 | INFO  | Thread-5         | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 | Camel activator starting

 

 

2015-01-12 10:48:05,297 | INFO  | rint Extender: 1 | BrokerService                    | 64 - org.apache.activemq.activem q-core - 5.7.0 |

Apache ActiveMQ 5.7.0 (default, ID:asn-wt-8213-1421030885148-0:1) is starting

 

 

2015-01-12 10:48:05,322 | INFO  | rint Extender: 1 | TransportServerThreadSupport     | 64 - org.apache.activemq.activem q-core - 5.7.0 |

Listening for connections at: tcp://127.0.0.1:61616

 

 

2015-01-12 10:48:05,325 | INFO  | rint Extender: 1 | TransportConnector               | 64 - org.apache.activemq.activem q-core - 5.7.0 |Connector openwire Started

 

 

2015-01-12 10:48:05,318 | INFO  | Thread-5         | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 | Camel activator started

 

 

2015-01-12 10:48:05,372 | INFO  | rint Extender: 1 | TransportServerThreadSupport     | 64 - org.apache.activemq.activemq-core - 5.7.0 | Listening for connections at: stomp://127.0.0.1:61613

 

 

2015-01-12 10:48:05,372 | INFO  | rint Extender: 1 | TransportConnector               | 64 - org.apache.activemq.activemq-core - 5.7.0 | Connector stomp Started

 

 

2015-01-12 10:48:05,374 | INFO  | rint Extender: 1 | BrokerService                    | 64 - org.apache.activemq.activem q-core - 5.7.0 |

Apache ActiveMQ 5.7.0 (default, ID:asn-wt-8213-1421030885148-0:1) started

 

 

2015-01-12 10:48:05,374 | INFO  | rint Extender: 1 | BrokerService                    | 64 - org.apache.activemq.activem q-core - 5.7.0 |For help or more information please see: http://activemq.apache.org

 

 

2015-01-12 10:48:05,375 | WARN  | rint Extender: 1 | BrokerService                    | 64 - org.apache.activemq.activem q-core - 5.7.0 |

Store limit is 102400 mb, whilst the data directory: D:\osesbinaction\esb\apache-servicemix-4.5.3\data\activemq\default\kahadb only has 7315 mb of usable space

 

 

2015-01-12 10:48:05,376 | ERROR | rint Extender: 1 | BrokerService                    | 64 - org.apache.activemq.activem q-core - 5.7.0 |

Temporary Store limit is 51200 mb, whilst the temporary data directory: D:\osesbinaction\esb\apache-servicemix-4.5.3\data\activemq\default\default\tmp_storage only has 7315 mb of usable space

 

 

2015-01-12 10:48:05,387 | INFO  | rint Extender: 1 | TransportConnector               | 64 - org.apache.activemq.activemq-core - 5.7.0 | Connector vm://default Started

 

 

2015-01-12 10:48:05,650 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-management (129) [org.apache.cxf.management.InstrumentationManager]

 

 

2015-01-12 10:48:05,730 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap (134) [org.apache.cxf.binding.soap.SoapBindingFactory, org.apache.cxf.binding.soap.SoapTransportFactory]

 

 

2015-01-12 10:48:05,736 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml (135) [org.apache.cxf.binding.xml.XMLBindingFactory, org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]

 

 

2015-01-12 10:48:05,829 | INFO  | Thread-5         | Server                           | 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | jetty-7.5.4.v20111024

2015-01-12 10:48:05,883 | INFO  | Thread-5         | JettyServerImpl                  | 136 - org.ops4j.pax.web.pax-web-jetty - 1.0.12.1 | Pax Web available at [0.0.0.0]:[8181]

2015-01-12 10:48:05,888 | INFO  | Thread-5         | AbstractConnector                | 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | Started NIOSocketConnectorWrapper@0.0.0.0:8181 STARTING

 

2015-01-12 10:48:05,901 | INFO  | Thread-5         | Activator                        | 138 - org.ops4j.pax.web.pax-web-runtime - 1.0.12.1 | Pax Web started

2015-01-12 10:48:05,936 | INFO  | Thread-5         | HttpServiceFactoryImpl           | 138 - org.ops4j.pax.web.pax-web-runtime - 1.0.12.1 | Binding bundle: [org.apache.karaf.deployer.features [35]] to http service

2015-01-12 10:48:05,996 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-policy (159)

[

org.apache.cxf.ws.policy.PolicyEngine,

org.apache.cxf.policy.PolicyDataEngine,

org.apache.cxf.ws.policy.AssertionBuilderRegistry,

org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,

org.apache.cxf.ws.policy.PolicyBuilder,

org.apache.cxf.ws.policy.PolicyAnnotationListener,

org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,

org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,

org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,

org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,

org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,

org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]

 

2015-01-12 10:48:05,996 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (141)

[

org.apache.cxf.transport.http.HTTPTransportFactory,

org.apache.cxf.transport.http.HTTPWSDLExtensionLoader,

org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,

org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,

org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]

 

2015-01-12 10:48:06,036 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws (143) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]

 

2015-01-12 10:48:06,733 | INFO  | g.ops4j.pax.web) | Server                           | 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | jetty-7.5.4.v20111024

2015-01-12 10:48:06,737 | INFO  | g.ops4j.pax.web) | AbstractConnector                | 120 - org.eclipse.jetty.util - 7.5.4.v20111024 | Started BlockingChannelConnector@0.0.0.0:8181 STARTING

2015-01-12 10:48:06,737 | INFO  | g.ops4j.pax.web) | JettyServerImpl                  | 136 - org.ops4j.pax.web.pax-web-jetty - 1.0.12.1 | Pax Web available at [0.0.0.0]:[8181]

2015-01-12 10:48:06,738 | WARN  | g.ops4j.pax.web) | NIOSocketConnectorWrapper        | 136 - org.ops4j.pax.web.pax-web-jetty - 1.0.12.1 | Connection on port 8181 cannot be open. Reason: Address already in use: bind

2015-01-12 10:48:06,829 | INFO  | g.ops4j.pax.web) | ContextHandler                   | 120 - org.eclipse.jetty.util - 7.5.4.v20111024 |

started HttpServiceContext

{

httpContext=DefaultHttpContext

{

bundle=org.apache.karaf.deployer.features [35]

}

}

 

2015-01-12 10:48:06,895 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-corba (151) [org.apache.cxf.binding.corba.CorbaBindingFactory, org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister]

2015-01-12 10:48:06,913 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-local (153) [org.apache.cxf.transport.local.LocalTransportFactory]

2015-01-12 10:48:06,921 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-object (154) [org.apache.cxf.binding.object.ObjectBindingFactory]

2015-01-12 10:48:06,951 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-jetty (155)

[

org.apache.cxf.transport.http_jetty.JettyDestinationFactory,

org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory,

org.apache.cxf.transport.http.ContinuationProviderFactory]

 

2015-01-12 10:48:06,965 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-jms (156) [org.apache.cxf.transport.jms.JMSTransportFactory, org.apache.cxf.transport.jms.wsdl11.JMSWSDLExtensionLoader]

2015-01-12 10:48:07,170 | INFO  | rint Extender: 2 | HttpServiceFactoryImpl           | 138 - org.ops4j.pax.web.pax-web- runtime - 1.0.12.1 |

Binding bundle: [org.apache.cxf.cxf-rt-transports-http [141]] to http service

2015-01-12 10:48:07,235 | INFO  | rint Extender: 2 | ContextHandler                   | 120 - org.eclipse.jetty.util - 7.5.4.v20111024 |

started HttpServiceContext

{

httpContext=DefaultHttpContext

{

bundle=org.apache.cxf.cxf-rt-transports-http[141]

}

}

2015-01-12 10:48:07,322 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-addr (163)

[

org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,

org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,

org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,

org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader,

org.apache.cxf.ws.addressing.WSAddressingFeature$WSAddressingFeatureApplier,

org.apache.cxf.ws.addressing.MAPAggregator$MAPAggregatorLoader]

 

 

2015-01-12 10:48:07,452 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-mex (167) [org.apache.cxf.ws.mex.MEXServerListener]

2015-01-12 10:48:07,454 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-security (165) [org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader, org.apache.cxf.ws.security.cache.CacheCleanupListener]

2015-01-12 10:48:07,470 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-rm (166)

[org.apache.cxf.ws.rm.RMManager,

org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,

org.apache.cxf.ws.rm.policy.RMAssertionBuilder,

org.apache.cxf.ws.rm.policy.RM11AssertionBuilder]

 

2015-01-12 10:48:07,556 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.cxf.cxf-rt-javascript (168) [org.apache.cxf.javascript.JavascriptQueryHandler]

2015-01-12 10:48:07,645 | INFO  | Thread-5         | CXFActivator                     | 132 - org.apache.cxf.cxf-api - 2.6.9 |

Adding the extensions from bundle org.apache.camel.camel-cxf-transport (174) [org.apache.camel.component.cxf.transport.CamelTransportFactory]

 

karaf@root>

 

===========================================================

在apache-servicemix-4.5.3/delpoy目录下,放入sample1.xml文件

 

 1 <?xml version="1.0" encoding="UTF-8"?>  
 2 <blueprint  
 3     xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"  
 4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
 5     xsi:schemaLocation="  
 6       http://www.osgi.org/xmlns/blueprint/v1.0.0  
 7       http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">  
 8   
 9     <camelContext xmlns="http://camel.apache.org/schema/blueprint">  
10       <route>  
11         <from uri="file:camel/input"/>  
12         <log message="Moving ${file:name} to the output directory"/>  
13         <to uri="file:camel/output"/>  
14       </route>  
15     </camelContext>  
16 </blueprint> 

 

 

查看到sample1.xml路由已被安装:

 

对应的日志信息:

2015-01-12 11:22:19,542 | INFO  | mix-4.5.3/deploy | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 |

Installed D:\osesbinaction\esb\apache-servicemix-4.5.3\deploy\sample1.xml

 

2015-01-12 11:22:19,557 | INFO  | mix-4.5.3/deploy | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 |

Started bundle: blueprint:file:/D:/osesbinaction/esb/apache-servicemix-4.5.3/deploy/sample1.xml

 

2015-01-12 11:22:20,682 | INFO  | rint Extender: 1 | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 |

Found 2 @Converter classes to load

2015-01-12 11:22:20,698 | INFO  | rint Extender: 1 | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 |

Found 2 @Converter classes to load

 

2015-01-12 11:22:20,714 | INFO  | rint Extender: 1 | ManagementStrategyFactory        | 100 - org.apache.camel.camel-core - 2.10.7 | JMX enabled.

2015-01-12 11:22:20,729 | INFO  | rint Extender: 1 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-3) is starting

2015-01-12 11:22:20,964 | INFO  | rint Extender: 1 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Route: route1 started and consuming from: Endpoint[file://camel/input]

2015-01-12 11:22:20,964 | INFO  | rint Extender: 1 | faultManagementLifecycleStrategy | 100 - org.apache.camel.camel-core - 2.10.7 | StatisticsLevel at All so enabling load performance statistics

2015-01-12 11:22:20,964 | INFO  | rint Extender: 1 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Total 1 routes, of which 1 is started.

2015-01-12 11:22:20,964 | INFO  | rint Extender: 1 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-3) started in 0.235 seconds

 

 

在servicemix-4.53/camel/input下,移入mule.docx文件,对应的日志信息:

 

2015-01-12 11:35:58,992 | INFO  | le://camel/input | route1                           | 100 - org.apache.camel.camel-core - 2.10.7 | Moving mule.docx to the output directory

 

 

 

 

 

执行 osgi:stop 181 暂停路由:

 

2015-01-12 11:41:42,877 | INFO  | l Console Thread | BlueprintCamelContext            | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-3) is shutting down

 

 

 

2015-01-12 11:41:42,877 | INFO  | l Console Thread | DefaultShutdownStrategy          | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Starting to graceful shutdown 1 routes (timeout 300 seconds)

 

 

 

2015-01-12 11:41:42,877 | INFO  | 2 - ShutdownTask | DefaultShutdownStrategy          | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Route: route1 shutdown complete, was consuming from: Endpoint[file://camel/input]

 

 

 

2015-01-12 11:41:42,877 | INFO  | l Console Thread | DefaultShutdownStrategy          | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Graceful shutdown of 1 routes completed in 0 seconds

 

 

 

2015-01-12 11:41:42,877 | INFO  | l Console Thread | BlueprintCamelContext            | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-3) is shutdown in 0.000 seconds. Uptime 19 minutes.

 

 

 

执行 osgi:start 181 启动路由:

 

2015-01-12 11:42:24,246 | INFO  | rint Extender: 3 | Activator                        | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Found 2 @Converter classes to load

 

2015-01-12 11:42:24,246 | INFO  | rint Extender: 3 | Activator                        | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Found 2 @Converter classes to load

 

2015-01-12 11:42:24,262 | INFO  | rint Extender: 3 | ManagementStrategyFactory        | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | JMX enabled.

 

2015-01-12 11:42:24,262 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-6) is starting

 

2015-01-12 11:42:24,340 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Route: route2 started and consuming from: Endpoint[file://camel/input]

 

2015-01-12 11:42:24,340 | INFO  | rint Extender: 3 | faultManagementLifecycleStrategy | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | StatisticsLevel at All so enabling load performance statistics

 

2015-01-12 11:42:24,356 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Total 1 routes, of which 1 is started.

 

2015-01-12 11:42:24,356 | INFO  | rint Extender: 3 | BlueprintCamelContext            | 100 - org.apache.camel.camel-cor

 

e - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-6) started in 0.094 seconds

 

 

====================================================

不直接记录日志信息,而是路由日志信息到JMS队列

sample1.xml

 1 <?xml version="1.0" encoding="UTF-8"?>  
 2 <blueprint  
 3     xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"  
 4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
 5     xsi:schemaLocation="  
 6       http://www.osgi.org/xmlns/blueprint/v1.0.0  
 7       http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">  
 8   
 9     <camelContext xmlns="http://camel.apache.org/schema/blueprint">  
10       <route>  
11         <from uri="file:camel/input"/>  
12         <to uri="file:camel/output"/>
13         <setBody>
14             <simple>FileMovedEvent(file:${file:name}, timestamp:${date:now:hh:MM:ss.SSS})</simple>
15         </setBody>
16         <to uri="activemq://events" />
17       </route>  
18     </camelContext>  
19 </blueprint> 

sample1.xml路由的启动信息:

2015-01-12 11:45:51,953 | INFO  | mix-4.5.3/deploy | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 | Updated D:\osesbinaction\esb\apache-servicemix-4.5.3\deploy\sample1.xml

2015-01-12 11:46:19,705 | INFO  | mix-4.5.3/deploy | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 | Updated D:\osesbinaction\esb\apache-servicemix-4.5.3\deploy\sample1.xml

2015-01-12 11:46:33,316 | INFO  | rint Extender: 2 | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 | Found 2 @Converter classes to load

2015-01-12 11:46:33,316 | INFO  | rint Extender: 2 | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 | Found 2 @Converter classes to load

2015-01-12 11:46:33,332 | INFO  | rint Extender: 2 | ManagementStrategyFactory        | 100 - org.apache.camel.camel-core - 2.10.7 | JMX enabled.

2015-01-12 11:46:33,332 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-9) is starting

2015-01-12 11:46:33,441 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Route: route3 started and consuming from: Endpoint[file://camel/input]

2015-01-12 11:46:33,441 | INFO  | rint Extender: 2 | faultManagementLifecycleStrategy | 100 - org.apache.camel.camel-core - 2.10.7 | StatisticsLevel at All so enabling load performance statistics

2015-01-12 11:46:33,441 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Total 1 routes, of which 1 is started.

2015-01-12 11:46:33,441 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 181-camel-9) started in 0.109 seconds

 

sample2.xml

<?xml version="1.0" encoding="UTF-8"?>
<blueprint
    xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
    <camelContext xmlns="http://camel.apache.org/schema/blueprint">
      <route>
        <from uri="activemq://events"/>
        <to uri="log:events"/>
      </route>
    </camelContext>
</blueprint>

sample2.xml路由的启动信息:

2015-01-12 11:48:02,963 | INFO  | mix-4.5.3/deploy | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 | Installed D:\osesbinaction\esb\apache-servicemix-4.5.3\deploy\sample2.xml

2015-01-12 11:48:02,979 | INFO  | mix-4.5.3/deploy | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 | Started bundle: blueprint:file:/D:/osesbinaction/esb/apache-servicemix-4.5.3/deploy/sample2.xml

2015-01-12 11:48:03,010 | INFO  | rint Extender: 2 | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 | Found 2 @Converter classes to load

2015-01-12 11:48:03,010 | INFO  | rint Extender: 2 | Activator                        | 100 - org.apache.camel.camel-core - 2.10.7 | Found 2 @Converter classes to load

2015-01-12 11:48:03,010 | INFO  | rint Extender: 2 | ManagementStrategyFactory        | 100 - org.apache.camel.camel-core - 2.10.7 | JMX enabled.

2015-01-12 11:48:03,010 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 182-camel-12) is starting

2015-01-12 11:48:03,135 | INFO  | ActiveMQ Task-1  | FailoverTransport                | 64 - org.apache.activemq.activemq-core - 5.7.0 | Successfully connected to tcp://localhost:61616

2015-01-12 11:48:03,150 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Route: route4 started and consuming from: Endpoint[activemq://events]

2015-01-12 11:48:03,150 | INFO  | rint Extender: 2 | faultManagementLifecycleStrategy | 100 - org.apache.camel.camel-core - 2.10.7 | StatisticsLevel at All so enabling load performance statistics

2015-01-12 11:48:03,166 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Total 1 routes, of which 1 is started.

2015-01-12 11:48:03,166 | INFO  | rint Extender: 2 | BlueprintCamelContext            | 100 - org.apache.camel.camel-core - 2.10.7 | Apache Camel 2.10.7 (CamelContext: 182-camel-12) started in 0.156 seconds

 

在servicemix-4.5.3/camel/input目录下,放入test.xml文件后,打印的日志信息:

2015-01-12 11:48:30,174 | INFO  | ActiveMQ Task-1  | FailoverTransport                | 64 - org.apache.activemq.activemq-core - 5.7.0 | Successfully connected to tcp://localhost:61616

2015-01-12 11:48:30,221 | INFO  | Consumer[events] | events                           | 100 - org.apache.camel.camel-core - 2.10.7 | Exchange[ExchangePattern:InOnly, BodyType:String, Body:FileMovedEvent(file:test.xml, timestamp:11:01:30.

159)]

 

注: 本文实例参考了这篇博客 http://blog.csdn.net/neuandustbneo/article/details/7965910

posted @ 2015-01-12 11:18  asnjudy  阅读(1373)  评论(0编辑  收藏  举报