`
iffiffj
  • 浏览: 156565 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Hornetq 与 JBoss4集成

阅读更多
1、下载Hornetq,URL:http://www.jboss.org/hornetq/downloads这里使用2.2.5.Final
2、解压Hornetq
3、指定需要安装Hornetq的JBOSS4目录
修改hornetq-2.2.5.Final\config\jboss-as-4\build.xml手动设置JBOSS_HOME,把
   <property environment="ENV"/>

改为:
   <property environment="ENV1"/>
   <property name="ENV.JBOSS_HOME" value="E:/Server/jboss-4.2.2.GA"/>

4、修正Hornetq的错误配置
修改
hornetq-2.2.5.Final\config\jboss-as-4\clustered\jms-ds.xml

中的配置,删除</mbean>前的那个多余的</attribute>标签。
修改
hornetq-2.2.5.Final\config\jboss-as-4\clustered\ra.xml
hornetq-2.2.5.Final\config\jboss-as-4\non-clustered\ra.xml

中的配置,因为这个配置写错了,把
      <config-property>
        <description>The class that will locate the transactionmanager</description>
        <config-property-name>TransactionManagerLocatorMethod</config-property-name>
        <config-property-type>java.lang.String</config-property-type>
        <config-property-value>org.hornetq.integration.jboss.tm.JBoss4TransactionManagerLocator</config-property-value>
      </config-property>

改为:
      <config-property>
        <description>The class that will locate the transactionmanager</description>
        <config-property-name>TransactionManagerLocatorClass</config-property-name>
        <config-property-type>java.lang.String</config-property-type>
        <config-property-value>org.hornetq.integration.jboss.tm.JBoss4TransactionManagerLocator</config-property-value>
      </config-property>

5、运行安装
运行hornetq-2.2.5.Final\config\jboss-as-4\build.bat,前提是要安装JDK和ANT,安装成功后会默认安装两个JBoss实例all-with-hornetq和default-with-hornetq,这两实例是基于原来all和default实例配置,直接复制原来实例配置然后再修改的。
6、添加启动脚本
到jboss-4.2.2.GA\server目录下,添加一个批处理文件,文件名为JBOSS实例的名称,下面的脚本会自动运行与bat文件名称相同的JBoss实例,如:default-with-hornetq.bat
内容如下:
%~dp0..\bin\run.bat -c %~n0 -b 0.0.0.0

7、运行错误处理
如果运行过程中出现以下错误,那说明你在复制JBOSS的实例的时候把data目录的hornetq数据也复制了,解决办法是删除data下面的所有数据。
WARN  [org.hornetq.core.cluster.impl.DiscoveryGroupImpl]  There are more than one servers on the network broadcasting the same  node id. You will see this message exactly once (per node) if a node is  restarted, in which case it can be safely ignored. But if it is logged  continuously it means you really do have more than one node on the same  network active concurrently with the same node id. This could occur if  you have a backup node active at the same time as its live node.
分享到:
评论

相关推荐

    HornetQ 2.1 中文文档

    HornetQ是JBoss社区所研发的开放源代码消息中间件;HornetQ是以Java 5 编写,因此只需要操作系统支持Java虚拟机,HornetQ便可运行。 支持Java消息服务 (JMS) 1.1 版本 集群 (Clustering) 支持庞大的消息(Message)...

    HornetQ Messaging Developer's Guide.pdf

    HornetQ是java开源实现的消息系统框架,性能上比ActiveQ要好一些,被集成到JBoss的消息服务中。 Table of Contents Preface 1 Chapter 1: Getting Started with HornetQ 9 Chapter 2: Setting Up HornetQ 31 ...

    Jboss事物处理

    完整的HornetQ-JBoss-TS-MySQL-Tomcat-Spring-master分布式事物处理

    HornetQ官方学习资料

    教你一步一步掌握HornetQ,HornetQ是一个支持集群和多种协议,可嵌入、高性能的异步消息系统。HornetQ完全支持JMS,HornetQ不但支持JMS1.1 API同时也定义属于自己的消息API,这可以最大限度的提升HornetQ的性能和...

    HornetQ2.3 API 文档

    HornetQ 2.3.0 Alpha 发布,这不是一个简单的 Alpha 版本,同时也是一个大的发行版本。该版本对 2.2.0 进行了重构,引入一些原子故障迁移特性和大量企业特性改进。详细的新特性介绍请看发行说明。 HornetQ是一个...

    hornetq 实例

    Hornetq 实例

    HornetQ2.1中文手册

    HornetQ2.1中文手册 HornetQ2.1中文手册

    Hornetq2.1中文手册

    该文档是对Hornetq英文文档的翻译,对于英文不好的同学,有很大的帮助。

    一个jms activemq Topic 消息实例

    一个jms activemq Topic ...在jboss 5 之前好像一直在用jbossmq ,而从6 开始使用HornetQ ,hornetq 也可以脱离jboss 单独使用 hornetq 的配置在jboss-6.0.0.20100429-M3/server/default/deploy/hornetq/目录进行配置

    hermes 监听hornetq JMS配置步奏

    hermes 监听hornetq JMS配置

    hornetq 2.4.0免安装

    hornetq 2.4.0 一个轻量但高效的MQ

    ActiveMQ和HornetQ性能对比

    ActiveMQ和HornetQ性能对比

    hornetq-2.2.5.Final.zip

    hornetq-2.2.5.Final.ziphornetq-2.2.5.Final.ziphornetq-2.2.5.Final.ziphornetq-2.2.5.Final.ziphornetq-2.2.5.Final.ziphornetq-2.2.5.Final.ziphornetq-2.2.5.Final.zip

    .net 连接HornetQ,需要的dll

    能用该dll连HornetQ并上传或获取队列数据,引用dll,创建Factory ,创建连接,创建消费者,创建发布者,等等

    hornetq-2.4.0.Final-bin.tar

    hornetq安装包, hornetq-2.4.0.Final-bin.tar 消息中间件 供项目中数据交互使用

    HornetQ 2_1用户手册

    要了解有关HornetQ的更多信息请访问 http://www.jboss.org/community/wiki/HornetQGeneralFAQs。 为什么要使用HornetQ? 以下给出了几个理由: * HornetQ是100%的开源软件。 HornetQ 采用 Apache v 2.0开源...

    hornetq-2.3.0.Final-bin.zip

    hornetq-2.3.0.Final-bin.zip

    HornetQ2.1中文手册.7z

    HornetQ2.1中文手册.7z

    hornetq-transports-2.0.0.GA.jar

    hornetq-transports-2.0.0.GA.jar

    HornetQ集群配置

    HornetQ集群配置,主主集群,通过udp广播形式通信。。

Global site tag (gtag.js) - Google Analytics