本文共 3767 字,大约阅读时间需要 12 分钟。
ServiceMix 初试JMX Console1. Using JConsole 首先要运行 ServiceMix cd [J2SE_install_dir]\bin ./jconsole & Click on the "Advanced" tab entered in the "JMX URL" box service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX 这时 org.servicemix 将显示在控制台中Examples如运行Basic Example huihoo@debian:~/java/soa/servicemix-2.0.2/examples/basic$ /home/huihoo/java/soa/servicemix-2.0.2/bin/servicemix servicemix.xml ServiceMix ESB: 2.0.2 Loading ServiceMix from file: servicemix.xml 13:24:50,580 INFO [JournalPersistenceAdapter] Opening journal. 13:24:50,897 INFO [JournalPersistenceAdapter] Opened journal: Active Journal: using 2 x 20.0 Megs at: ../var/journal 13:24:50,897 INFO [JournalPersistenceAdapter] Journal Recovery Started. 13:24:50,984 INFO [JournalPersistenceAdapter] Journal Recovered: 0 message(s) in transactions recovered. 13:24:51,228 INFO [JCAContainer] Jencks JCA Container (http://jencks.org/) has started running version: 1.1.1 13:24:51,993 INFO [JCAConnector] Activating endpoint for activationSpec: ActiveMQActivationSpec{acknowledgeMode='Auto-acknowledge', destinationType='javax.jms.Topic', messageSelector='null', destination='demo.org.servicemix.source', clientId='null', subscriptionName='null', subscriptionDurability='NonDurable'} using endpointFactory: org.jencks.SingletonEndpointFactory@6798eb[transactionManager=org.apache.geronimo.transaction.context.GeronimoTransactionManager@168989e] 13:24:52,195 INFO [JCAConnector] Activating endpoint for activationSpec: ActiveMQActivationSpec{acknowledgeMode='Auto-acknowledge', destinationType='javax.jms.Topic', messageSelector='null', destination='demo.org.servicemix.result', clientId='null', subscriptionName='null', subscriptionDurability='NonDurable'} using endpointFactory: org.jencks.SingletonEndpointFactory@76f2e8[transactionManager=org.apache.geronimo.transaction.context.GeronimoTransactionManager@168989e] 13:24:52,606 DEBUG [XAEndpoint] Transaction started and resource enlisted 13:24:52,697 DEBUG [XAEndpoint] Transaction committed .......测试报告huihoo@debian:~/java/soa/servicemix-2.0.2/examples/basic/target/test-reports$ ls more activemq-test.log 2006-04-22 13:24:52,606 [Thread-14 ] DEBUG XAEndpoint - Transaction started and resource enlisted 2006-04-22 13:24:52,697 [Thread-14 ] DEBUG XAEndpoint - Transaction committed 2006-04-22 13:24:52,791 [Thread-19 ] DEBUG XAEndpoint - Transaction started and resource enlisted 2006-04-22 13:24:52,847 [Thread-19 ] DEBUG XAEndpoint - Transaction committed ..... 参考资料: http://servicemix.org/ |
转载地址:http://qflvi.baihongyu.com/