在weblogic 8.1上部署spring消息驱动的pojo
我正在尝试在 weblogic 8.1 上部署 spring 消息消息驱动的 POJO。它是一个简单的 POJO,在应用程序服务器外部运行时工作正常,但消息似乎根本没有被获取。我创建了空的 home 和远程接口,以及一个容器 bean 类,其中包含从应用程序上下文获取的 pojo 实例。然后,我将此容器 bean 类作为 .ejb-jar.xml 添加到 ejb-jar.xml 中。我无法收到消息。
有人对我做错了什么有什么建议吗?谁能给我提供有关如何部署 MDP 的教程吗?
谢谢。
I am trying to deploy a spring message message driven POJO on weblogic 8.1. It is a simple POJO, and it works fine being run outside of an application server, but the messages do not seem to be picked up at all. I have created empty home and remote interfaces, as well as a container bean class that contains an instance of the pojo which it gets from the application context. I then added this container bean class to the ejb-jar.xml as a . I have not been able to get the messages pick up.
Does anyone have any suggestions as to what I am doing wrong? Could anyone point me to a tutorial on how to deploy a MDP?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个教程:
http://java- x.blogspot.com/2006/12/implementing-jms-with-spring-message.html
当您说“家庭和远程接口”时,我不知道您在说什么。你说的是Spring POJO,但home和remote接口是EJB 2.0工件。
要回答的重要问题是:您的消息驱动组件是 EJB (MDB) 还是 Spring POJO (MDP)?如果它们是 EJB,我完全理解为什么需要家庭和远程接口。如果不是,我会说这可能是一个纯 Web 应用程序,打包在 WAR 中,没有 EJB XML。
您还需要设置一个 JMS 队列。你做对了吗? WebLogic 8.1 意味着 JMS 1.0.2。
这是 WebLogic 和 JDK 的旧版本。为什么不使用 WebLogic 10 和 JDK 6?
Here's a tutorial:
http://java-x.blogspot.com/2006/12/implementing-jms-with-spring-message.html
I have no idea what you're talking about when you say "home and remote interfaces". You said Spring POJO, but home and remote interfaces are EJB 2.0 artifacts.
The important question to answer is: Are your message driven component EJBs (MDB) or Spring POJO (MDP)? If they're EJBs, I totally understand why you need home and remote interfaces. If not, I would say this could be a pure web app, packaged in a WAR, without the EJB XML.
You also need a JMS queue to be set up. Have you done that properly? WebLogic 8.1 means JMS 1.0.2.
That's an OLD version of WebLogic and JDK. Why aren't you using WebLogic 10 and JDK 6?