JBoss:向JBoss4.3添加JMS资源

JBoss:向JBoss4.3添加JMS资源,jboss,jms,Jboss,Jms,我很难理解在哪里定义JBoss中JMS队列实现所需的JMS资源。目前我正在处理的代码在WebLogic上工作,我正在尝试将其迁移到JBoss 4.3 eap 在weblogic中,有一个jms.xml文件定义jms资源和JNDI查找名称。例如: <quota name="CacheT.Quota"> <bytes-maximum>9999999999999999999</bytes-maximum> <messages-maximum>99

我很难理解在哪里定义JBoss中JMS队列实现所需的JMS资源。目前我正在处理的代码在WebLogic上工作,我正在尝试将其迁移到JBoss 4.3 eap

在weblogic中,有一个jms.xml文件定义jms资源和JNDI查找名称。例如:

<quota name="CacheT.Quota">
  <bytes-maximum>9999999999999999999</bytes-maximum>
  <messages-maximum>9999999999999999999</messages-maximum>
  <policy>FIFO</policy>
  <shared>false</shared>
</quota>
<template name="MessQ">
  <delivery-failure-params>
    <redelivery-limit>1</redelivery-limit>
    <expiration-policy>Discard</expiration-policy>
  </delivery-failure-params>
</template>
<connection-factory name="Queue Conn Fact">
  <default-targeting-enabled>true</default-targeting-enabled>
  <jndi-name>com.company.QueueConnFact</jndi-name>
  <default-delivery-params>
    <default-delivery-mode>Persistent</default-delivery-mode>
  </default-delivery-params>
  <transaction-params>
    <xa-connection-factory-enabled>false</xa-connection-factory-enabled>
  </transaction-params>
  <security-params>
    <attach-jmsx-user-id>false</attach-jmsx-user-id>
  </security-params>
</connection-factory>
<queue name="EMessQ">
  <sub-deployment-name>Product_JMS</sub-deployment-name>
  <template>MessQ</template>
  <jndi-name>com.company.EMessQ</jndi-name>
</queue>
<uniform-distributed-topic name="CacheT">
  <sub-deployment-name>Product_JMS</sub-deployment-name>
  <jndi-name>com.company.CacheT</jndi-name>
  <load-balancing-policy>Round-Robin</load-balancing-policy>
</uniform-distributed-topic>

9999999999999999999
9999999999999999999
先进先出
假的
1.
丢弃
真的
com.company.QueueConnFact
持久的
假的
,没有问题得到回答。请记住,我对整个JMS都是新手,对JBoss也相对陌生。我确实发现了这一点,但这似乎讨论了JBossMessaging,据我所知,这是JBoss5而不是4.3版中的一个新JMS实现

我们的应用程序部署为EAR文件,其中包含WARs和常见的库JAR。有人建议我必须将这些定义添加到每个jboss.xml中,我希望避免这样做

基本上,我很困惑。我试图在进行这些更改时学习JMS,但我似乎无法理解这一部分

感谢您的帮助。

实际上,EAP 4.3 JBoss Messaging,而不是您链接引用的2.0版本。你会想要这个