JBoss 4.0.5 MDB 配置
这一个正在打败我,我一直无法弄清楚......所以就这样了。 我想向我的应用程序添加一个消息驱动 Bean,该应用程序打包为 .ear 文件
按照文档,我创建了一个 jboss.xml 和一个 ejb-jar.xml,我尝试将其放在 META-INF 和root 和 WEB-INF 上,但我只是看不到它工作(即 MDB 从未加载,也没有收到消息。
我的耳朵文件如下所示:
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
myapp.war
This one is beating me, and I have not been able to figure it out ... So here it goes.
I want to add a Message Drive Bean to my app which is packaged as a .ear file
Following the documentation I've created a jboss.xml and a ejb-jar.xml, which I tried to put on the META-INF and the root and on the WEB-INF but I just don;t see it working (i.e. the MDB is never loaded, nor it received the messages.
My ear file looks like:
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
myapp.war
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的最终解决方案是将MDB代码(和支持类)分离到ear内的一个单独文件(myapp-mdb.jar)中,并且为了使用相同的hibernate映射和类来支持它,hibernate相关文件被打包在myapp上。哈。
只是发布答案供参考。
My final solution was to separate the MDB code (and supporting classes) into a separate file inside the ear (myapp-mdb.jar) And to support that with the same hibernate mappings and classes, the hibernate related files were packaged on the myapp.har.
Just posting the answer for reference.