如何在Jboss 6中配置JMS? [英] How to configure JMS in Jboss 6?

查看:88
本文介绍了如何在Jboss 6中配置JMS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是JMS的新手(java Messaging服务)。我想使用jboss 6运行示例JMS应用程序。

I newbie to JMS(java Messaging service). I want to run sample JMS application using jboss 6.

我已经厌倦了搜索谷歌并得到像这个。这些链接是参考jboss 7.

I have tired searching google and got like this. Those link are refer jboss 7.

1.如何在jboss 6中配置JMS?

1.How to configure JMS in jboss 6?

2.Is Jboss7有没有内置的JMS?或者需要手动配置?

2.Is there Jboss7 have in built-in JMS? or need configure manually?

3.sample使用Jboss 6的应用程序?

3.sample Application using Jboss 6?

推荐答案

最后,我使用Jboss 6.x获得了示例jms应用程序的链接。
有两种方法可以在jboss
中配置jms队列1.在jboss / server / default / deploy / hornetq / hornetq.jms.xm中添加消息队列详细信息

Finally i got the link for sample jms application using Jboss 6.x. There are two ways you can configure jms queue in jboss 1.Add message queue details in jboss/server/default/deploy/hornetq/hornetq.jms.xm

<queue name="myQueue">
  <entry name="/queue/MyQueue"/>
</queue>

2.在工作区中创建xml文件并添加消息队列详细信息

2.create xml file in your workspace and add the message queue details

<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="urn:hornetq"
    xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd" >

    <queue name="MyQueue2" >
        <entry name="/queue/MyQueue" />
    </queue>

</configuration>

在工作区的META-INF文件夹下维护此文件。

Maintain this file under META-INF folder of in your workspace.

请参阅此示例应用程序

在此示例中包含
1.如何在jboss中配置jms使用HornetQ的。
2.向jms消息队列发送消息
3.从jboss服务器显示消息

In this example includes 1.How to configure jms in jboss using hornetq. 2.Sending messages to jms message queue 3.Display messages from jboss server

这篇关于如何在Jboss 6中配置JMS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆