简体   繁体   English

从EJB3和JBoss5创建和访问JMS消息队列

[英]Creating and accessing JMS message queue from EJB3 and JBoss5

i'm assigned to get a data from a jsp and put that data to a JMS queue in Jboss5 and then access the queue by a client to display that data in a console. 我被分配从jsp获取数据,并将该数据放入Jboss5中的JMS队列,然后由客户端访问该队列以在控制台中显示该数据。 i don't have any clue regarding this matter, can you guys please give me some instructions, good tutorials to newbies regarding this? 我对此事一无所知,你们能给我一些指导,关于新手的好教程吗?

Java Enterprise Edition上的任何书籍都将向您介绍Java消息系统(JMS),以及如何将消息提交到队列以及如何从队列中获取消息。

I used this article when I was getting started with JMS queues/topics and JBoss 5. It explains how to go about creating the topics and queues themselves: 在开始使用JMS队列/主题和JBoss 5时,我使用了本文。它解释了如何创建主题和队列本身:

http://javabeanz.wordpress.com/2009/06/05/configuring-jms-in-jboss-5/ http://javabeanz.wordpress.com/2009/06/05/configuring-jms-in-jboss-5/

From there, you can leverage JMS clients, MessageDriven Beans, or any number of other mechanisms for grabbing messages off the queue. 从那里,您可以利用JMS客户端,MessageDriven Bean或任何其他机制从队列中获取消息。 For that, you should take a look at some of the JMS or JavaEE docs. 为此,您应该看一下一些JMS或JavaEE文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM