Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这很简单:我有一个 MDB 和一个 EJB,它们将消息发送到主题(或队列)。JBoss 抱怨该主题未绑定到 JNDI 上下文。
我希望每个应用程序最多自动创建主题/队列,或者至少有一个标准的方式来定义它(比如,ejb-jar/META-INF在
ejb-jar/META-INF
这个问题和这篇博文向我们展示了如何以特定于应用程序服务器的方式进行操作。这肯定有效,但是:
@MessageDriven
至少在 JavaEE 5 中似乎不可能做到这一点。