Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS configuration question.

 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a question regarding JMS configuration in JBoss. We send message from the JMS to the MDB.

Where can I see the message related info in JBoss.
means status of the message which is just shoot out.

My thinking it message is stored in Hypersonuc DB. is that right?

Can you tell what happens in (Detail view )between sending message from JMS to the reciving MDB?

Thanks,
Rahul.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. An application places a message on a message-request queue.

2. An application may listen to a message-response queue.

3. A Message-Driven Bean is listening to the message-request queue. When a message is found on the queue, the onMessage() method of the Message-Driven Bean is called and executed by the EJB container.

Ideally, code in the Message-Driven Bean will do some message processing and then call on a Session EJB for business logic with data extracted from the message.

For emphasis, business logic always goes in a Session EJB and should not be coded in Message-Driven Beans.

Hope this helps!
 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks James...

but I want to know Where can we see status of JMS message on JMX-console?

Thanks in advance.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I am not sure if JBoss includes a GUI for viewing messages on its message queues. You may get an answer from a JBoss forum, maybe.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jmx-console has a MBean which shows the number of messages waiting in a queue.
 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran, Where to see in JMX-Console?

Thanks in advance.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rahul Ba:
Jaikiran, Where to see in JMX-Console?

Thanks in advance.


An example -

1) Access the jmx-console (ex: http://localhost:8080/jmx-console)
2) Locate the "jboss.mq.destination" domain and under that you will find a link to your queue. Ex: name=A,service=Queue
3) Click on that link. That link will lead you to a page which has various details about the queue including the message count.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic