aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS configuration question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS configuration question." Watch "JMS configuration question." New topic
Author

JMS configuration question.

Rahul Ba
Ranch Hand

Joined: Oct 01, 2008
Posts: 205
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

Joined: Apr 16, 2008
Posts: 2187
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

Joined: Oct 01, 2008
Posts: 205
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

Joined: Apr 16, 2008
Posts: 2187
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

Joined: Jul 20, 2005
Posts: 10264
    
168

The jmx-console has a MBean which shows the number of messages waiting in a queue.


[My Blog] [JavaRanch Journal]
Rahul Ba
Ranch Hand

Joined: Oct 01, 2008
Posts: 205
Jaikiran, Where to see in JMX-Console?

Thanks in advance.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10264
    
168

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS configuration question.