博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ServiceMix 初试
阅读量:4138 次
发布时间:2019-05-25

本文共 3767 字,大约阅读时间需要 12 分钟。


ServiceMix 初试

(from ) 
  
ServiceMix是一个开源的 Enterprise Service Bus (ESB) 和 SOA 工具集, 支持 SUN JSP 208规范: Java Business Integration (JBI) , 采用 Apache 许可协议. 
其JBI的核心总线结构支持插件操作。 
ServicesMix 系统架构 
从 http://servicemix.org/Download 下载 servicemix 
如:http://dist.codehaus.org/servicemix/distributions/servicemix-2.0.2.tar.gz 
tar zxvf servicemix-2.0.2.tar.gz 
ServiceMix Directory 结构 
cd servicemix-2.0./bin 
启动 servicemix 
huihoo@debian:~/java/soa/servicemix-2.0.2/bin$ ./servicemix 
ServiceMix ESB: 2.0.2 
Loading ServiceMix from servicemix.xml on the CLASSPATH 
04:04:29,647 INFO [JournalPersistenceAdapter] Opening journal. 
04:04:29,727 INFO [JournalPersistenceAdapter] Opened journal: Active Journal: using 2 x 20.0 Megs at: ../var/ journal 
04:04:29,727 INFO [JournalPersistenceAdapter] Journal Recovery Started. 
04:04:29,803 INFO [JournalPersistenceAdapter] Journal Recovered: 0 message(s) in transactions recovered. 

JMX Console

1. 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 将显示在控制台中 
2. 使用 MC4J 
从 http://sourceforge.net/projects/mc4j/ 获得 mc4j 
如 linux 包: MC4J12b9-Linux.bin 
chmod +x MC4J12b9-Linux.bin 
./MC4J12b9-Linux.bin // 图形化安装界面 
安装完后,运行 
huihoo@debian:~$ ./runMC4J_Console_1.2b9 
也请事先运行servicemix 
Select your server connection type: JSR160 Name: This can any name, for example, ServiceMix Server URL: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX 

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/

你可能感兴趣的文章
虚拟机 CentOS7/RedHat7/OracleLinux7 配置静态IP地址 Ping 物理机和互联网
查看>>
Jackson Tree Model Example
查看>>
常用js收集
查看>>
如何防止sql注入
查看>>
springmvc传值
查看>>
在Eclipse中查看Android源码
查看>>
Android使用webservice客户端实例
查看>>
[转]C语言printf
查看>>
C 语言 学习---获取文本框内容及字符串拼接
查看>>
C 语言学习 --设置文本框内容及进制转换
查看>>
C 语言 学习---判断文本框取得的数是否是整数
查看>>
C 语言 学习---ComboBox相关、简单计算器
查看>>
C 语言 学习---ComboBox相关、简易“假”管理系统
查看>>
C 语言 学习---回调、时间定时更新程序
查看>>
C 语言 学习---复选框及列表框的使用
查看>>
第十一章 - 直接内存
查看>>
JDBC核心技术 - 上篇
查看>>
一篇搞懂Java反射机制
查看>>
Single Number II --出现一次的数(重)
查看>>
Palindrome Partitioning --回文切割 深搜(重重)
查看>>