users@glassfish.java.net

Re: JMS/Glassfish - MDB Not Consuming Queue Messages

From: <forums_at_java.net>
Date: Wed, 23 Nov 2011 04:44:02 -0600 (CST)

I can't see anything obviously wrong with your code.

I'm not sure about the logging as LoggerFactory isn't a JDK class, but I
presume this works OK.

Did you check the *broker* logs? These are in a directory something like
glassfish3\glassfish\domains\domain1\imq\instances\imqbroker\log
under your GlassFish installation

I would start by deploying your servlet only, without the MDB, and confirming
that it is definitely adding messages to the queue.

The simplest way to see how many messages are on a queue is to use the
command "imqcmd list dst", where the imqcmd command is in the
glassfish3/mq/bin under your GlassFish installation.
(Use user=admin, password=admin when prompted).
This will list all the queues and how many messages are in each.

For more information about imqcmd see the Message Queue Administration Guide
http://docs.oracle.com/cd/E18930_01/html/821-2438/aeonf.html#aeonj

Nigel

 

 

 


--
[Message sent by forum member 'nigeldeakin']
View Post: http://forums.java.net/node/866704