Jboss 上的 JMS 上的 POC

发布于 2024-07-19 13:47:50 字数 197 浏览 4 评论 0原文

我正在为在 JBoss 4.0.5 GA 上运行 JMS 做一个 POC。 任何人都可以给我一个链接,其中显示了如何

  1. 中创建队列
  2. 在 Jboss Crate 中的 Jboss 工厂
  3. 的示例。 配置

如果以上都不适用,Jboss 中是否有默认的 que、topic、factory。

I am doing a POC for runnig JMS on JBoss 4.0.5 GA. can anyone privide me a link which shows examples on how to

  1. Create a queue in Jboss
  2. Crate a factory in Jboss.
  3. Configuration

If the above are not applicable, the is there a default que, topic, factory in Jboss.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼泪淡了忧伤 2024-07-26 13:47:50

首先要注意的是,JBoss 4.0.5 将默认运行 JBossMQ(而不是较新的 JBoss Messaging)。 您的一些问题的答案取决于您正在做什么,即是否使用 MDB/EJB3?

请注意,您必须将 http:// 添加到这些链接的开头,Stackoverflow 很蹩脚,不允许我发布链接。

看一下这个 URL:www.java2s.com/Code/Java/EJB3/EJBTutorialfromJBossdemoformessagedrivenbean.htm

  1. 当 JBoss 加载示例中的 MDB 时,将自动为您创建队列
  2. 假设您指的是 JMS 连接工厂,您可以使用类似以下内容将工厂和目标注入 EJB3:

    @Resource(mappedName = "queue/notification.EmailSender")
    私有javax.jms.Destination emailSenderQueue;

    @Resource(mappedName = "QueueConnectionFactory")
    private javax.jms.ConnectionFactory connectionFactory;

  3. 这是一个很好的起点:www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss.html

另外,如果您尚未在 Jboss 4.0.3 中使用 EJB3,请参阅:rwatsh.blogspot。 com/2006/12/ejb3-development-using-jboss-405ga.html

The first thing to note is that JBoss 4.0.5 will be running JBossMQ by default (As opposed to the newer JBoss Messaging). The answers to some of your questions depend on what you're doing, i.e. MDBs/EJB3 or not?

Note, you'll have to add http:// to the beginning of these links, Stackoverflow is being lame and not letting me post links.

Take a look at this URL: www.java2s.com/Code/Java/EJB3/EJBTutorialfromJBossdemoformessagedrivenbean.htm

  1. The Queue will be created for you automatically when JBoss loads the MDB in the example
  2. Assuming you mean a JMS Connection Factory, you can inject factories and destinations into EJB3s using something like the following:

    @Resource(mappedName = "queue/notification.EmailSender")
    private javax.jms.Destination emailSenderQueue;

    @Resource(mappedName = "QueueConnectionFactory")
    private javax.jms.ConnectionFactory connectionFactory;

  3. This is a good starting point: www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss.html

Also if you're not doing EJB3 yet in Jboss 4.0.3, see: rwatsh.blogspot.com/2006/12/ejb3-development-using-jboss-405ga.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文