JMS Topic Creation in JBoss 5 AS

一笑奈何 提交于 2019-12-24 03:55:14

问题


In Jboss 4, when I deployed an ear with an MDB for a topic that had not been specified in the deployment descriptors, the server would automatically create the topic (after posting a warning saying that topic didn't exist).

In Jboss 5, it doesn't seem to automatically create the topics anymore (errors out instead). Is there a configuration option somewhere that would allow automatic topic creation?


回答1:


From the JBoss community forums -- This JIRA was added in 5AS.

Unfortunately it looks like there is no way to implement createDestination globally in the standardjboss.xml descriptor -- You have to add a custom jboss.xml descriptor to the ear deploying the mdb.

<jboss xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
 http://www.jboss.org/j2ee/schema/jboss_5_0.xsd" version="3.0">
    <enterprise-beans>
       <message-driven>
          <ejb-name>MessageDriven</ejb-name>
          <create-destination>true</create-destination>
       </message-driven>
    </enterprise-beans>
</jboss>


来源:https://stackoverflow.com/questions/703040/jms-topic-creation-in-jboss-5-as

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!