JBoss 5 AS中的JMS主题创建 [英] JMS Topic Creation in JBoss 5 AS
问题描述
在Jboss 4中,当我用MDB为未在部署描述符中指定的主题部署耳朵时,服务器将自动创建该主题(在发布警告说该主题不存在之后). /p>
在Jboss 5中,似乎不再自动创建主题(出现错误).某处是否有允许自动创建主题的配置选项?
来自JBoss社区论坛- 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? 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 5 AS中的JMS主题创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!<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>