You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by JeanNiBee <Jo...@nuance.com> on 2008/12/08 06:10:53 UTC

Admin Web Console not showing messages in queue.

Hi

Using Spring and ActiveMQ in a test environment.

I have all my setup working, far as I can tell, as my Sender sends out
messages and my MessageListener picks them up.

As a test I'm sending 100,000 message through the queue and having my
MessageListener sleep for 5 seconds in between each (to ensure build up in
the queue itself).

When I go to the admin web console and look at the status of my queue it
always says '0' doe all four columns of Messages Pending, Consumers,
Received and Sent.

I keep refreshing to no avail but my listener (that is logging the message
text to a file / console) keeps popping a new message to my logs every 5
seconds.

Not sure how to proceed to debug this. VERY new to using the tool and I
admit I got a bit lost running through all the documentation I could find.

For kicks.. my spring configs. (Thanks Cyrill LeClerc if you ever read
this.. your forum post got me more than just jump started on this)

<pre>
<bean id="fileUploadController"
  class="com.tosg.web.FileUploadController">
  <property name="sender" ref="queueSender"/>
  <property name="numberOfMessages" value="100000"/>
  <property name="listener" ref="messageListener"/>
</bean>

<bean id="activeMqConnectionFactory"
   class="org.apache.activemq.spring.ActiveMQConnectionFactory">
   <property name="brokerURL"
      value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"
/>
</bean>

<bean id="connectionFactory"
   class="org.springframework.jms.connection.SingleConnectionFactory">
   <property name="targetConnectionFactory"
      ref="activeMqConnectionFactory" />
</bean>

<bean id="jmsTemplate"
   class="org.springframework.jms.core.JmsTemplate">
   <property name="connectionFactory" ref="connectionFactory" />
   <property name="defaultDestinationName" value="jbtesting" />
   <property name="pubSubDomain" value="false" />
</bean>

<bean id="listenerContainer"
   class="org.springframework.jms.listener.DefaultMessageListenerContainer">
   <property name="concurrentConsumers" value="5" />
   <property name="connectionFactory" ref="connectionFactory" />
   <property name="destinationName" value="jbtesting" />
   <property name="messageListener" ref="messageListener" />
</bean>

<bean id="queueSender" class="com.tosg.jms.SampleSender">
   <property name="jmsTemplate" ref="jmsTemplate" />
</bean>

<bean id="messageListener" class="com.tosg.jms.SampleListener" />
</pre>

-- 
View this message in context: http://www.nabble.com/Admin-Web-Console-not-showing-messages-in-queue.-tp20889624p20889624.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Admin Web Console not showing messages in queue.

Posted by JeanNiBee <Jo...@nuance.com>.
Okay so what I'm gleaming from my reading is that I have a VM configured
broker so it runs inside my Java process (In Spring / Tomcat). This is
actually preferable to installing a service/binary and connecting to that as
I originally thought I was doing. (As it's more portable)

The 'out of the box' admin console isn't configured to tie into this so I
have to add the pieces necessary to my app to be able to query / list /
interact with the broker in my VM.

Next stop, custom Web Console... and persistence. :)

Wish me luck.

(This stuff is all so new but so interesting, the performance boost I'm
getting out of my app is insane)

Bare bones no persistence no tuning I can force 1800 message into my queue a
second.... I love it.


-- 
View this message in context: http://www.nabble.com/Admin-Web-Console-not-showing-messages-in-queue.-tp20889624p20907491.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Admin Web Console not showing messages in queue.

Posted by JeanNiBee <Jo...@nuance.com>.
Hi

I guess I am really misunderstanding the use of the technology then.

If I have a queue called "jbtesting" on a ActiveMQ instance (the only 1 I
have setup anywhere) and my webapp is connecting to localhost and posting
messages into jbtesting, as illustrated by my Spring config files sent in
original post. I assumed that the web console that is running by default
installation to be able to see the info in this queue.

I'll check out those links right away thanks.


Dejan Bosanac-3 wrote:
> 
> Hi,
> 
> the web console is not automatically integrated in your application when
> you embed the broker. You need to embed Jetty (or some other servlet
> container) as well and deploy web console app
> 
> Take a look at the default conf/activemq.xml and webapps/admin folder to
> find out how things are done in activemq distribution.
> 
> You can find more details on topic in the following article:
> http://www.nighttale.net/onjava/integrating-activemq-web-console.html,
> but I guess it should be updated a bit. I'll see to do it soon.
> 
> I guess what you were seeing is the web console of some other ActiveMQ
> instance you are running on your machine.
> 
> 
> 
> Hope this helps
> 
> -- 
> Dejan Bosanac
> 
> 
> http://www.ttmsolutions.com - get a free ActiveMQ user guide
> 
> ActiveMQ in Action - http://www.manning.com/snyder/
> Scripting in Java - http://www.scriptinginjava.net
> 
> 
> 
> JeanNiBee wrote:
>> I guess this will be a case of "RTFM" for me. ;)
>>
>> I just was looking at the Web Console that is provided from the default
>> 'getting started' so I didn't really configure anything other than click
>> the
>> link in the doc.
>>
>> Pointer to any info to help me understand this would be great. (As is the
>> ActiveMQ in action  book in your sig) :)
>>
>> Thanks
>>
>>
>> Dejan Bosanac-3 wrote:
>>   
>>> Hi,
>>>
>>> I can't see fro you example how you initialize your web console. Are you
>>> sure it points to the right broker?
>>>
>>> Cheers
>>>
>>> -- 
>>> Dejan Bosanac
>>>
>>>
>>> http://www.ttmsolutions.com - get a free ActiveMQ user guide
>>>
>>> ActiveMQ in Action - http://www.manning.com/snyder/
>>> Scripting in Java - http://www.scriptinginjava.net
>>>
>>>
>>>
>>> JeanNiBee wrote:
>>>     
>>>> Hi
>>>>
>>>> Using Spring and ActiveMQ in a test environment.
>>>>
>>>> I have all my setup working, far as I can tell, as my Sender sends out
>>>> messages and my MessageListener picks them up.
>>>>
>>>> As a test I'm sending 100,000 message through the queue and having my
>>>> MessageListener sleep for 5 seconds in between each (to ensure build up
>>>> in
>>>> the queue itself).
>>>>
>>>> When I go to the admin web console and look at the status of my queue
>>>> it
>>>> always says '0' doe all four columns of Messages Pending, Consumers,
>>>> Received and Sent.
>>>>
>>>> I keep refreshing to no avail but my listener (that is logging the
>>>> message
>>>> text to a file / console) keeps popping a new message to my logs every
>>>> 5
>>>> seconds.
>>>>
>>>> Not sure how to proceed to debug this. VERY new to using the tool and I
>>>> admit I got a bit lost running through all the documentation I could
>>>> find.
>>>>
>>>> For kicks.. my spring configs. (Thanks Cyrill LeClerc if you ever read
>>>> this.. your forum post got me more than just jump started on this)
>>>>
>>>> <pre>
>>>> <bean id="fileUploadController"
>>>>   class="com.tosg.web.FileUploadController">
>>>>   <property name="sender" ref="queueSender"/>
>>>>   <property name="numberOfMessages" value="100000"/>
>>>>   <property name="listener" ref="messageListener"/>
>>>> </bean>
>>>>
>>>> <bean id="activeMqConnectionFactory"
>>>>    class="org.apache.activemq.spring.ActiveMQConnectionFactory">
>>>>    <property name="brokerURL"
>>>>      
>>>> value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"
>>>> />
>>>> </bean>
>>>>
>>>> <bean id="connectionFactory"
>>>>    class="org.springframework.jms.connection.SingleConnectionFactory">
>>>>    <property name="targetConnectionFactory"
>>>>       ref="activeMqConnectionFactory" />
>>>> </bean>
>>>>
>>>> <bean id="jmsTemplate"
>>>>    class="org.springframework.jms.core.JmsTemplate">
>>>>    <property name="connectionFactory" ref="connectionFactory" />
>>>>    <property name="defaultDestinationName" value="jbtesting" />
>>>>    <property name="pubSubDomain" value="false" />
>>>> </bean>
>>>>
>>>> <bean id="listenerContainer"
>>>>   
>>>> class="org.springframework.jms.listener.DefaultMessageListenerContainer">
>>>>    <property name="concurrentConsumers" value="5" />
>>>>    <property name="connectionFactory" ref="connectionFactory" />
>>>>    <property name="destinationName" value="jbtesting" />
>>>>    <property name="messageListener" ref="messageListener" />
>>>> </bean>
>>>>
>>>> <bean id="queueSender" class="com.tosg.jms.SampleSender">
>>>>    <property name="jmsTemplate" ref="jmsTemplate" />
>>>> </bean>
>>>>
>>>> <bean id="messageListener" class="com.tosg.jms.SampleListener" />
>>>> </pre>
>>>>
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> -- 
> Dejan Bosanac
> 
> 
> http://www.ttmsolutions.com - get a free ActiveMQ user guide
> 
> ActiveMQ in Action - http://www.manning.com/snyder/
> Scripting in Java - http://www.scriptinginjava.net
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Admin-Web-Console-not-showing-messages-in-queue.-tp20889624p20897593.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Admin Web Console not showing messages in queue.

Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi,

the web console is not automatically integrated in your application when
you embed the broker. You need to embed Jetty (or some other servlet
container) as well and deploy web console app

Take a look at the default conf/activemq.xml and webapps/admin folder to
find out how things are done in activemq distribution.

You can find more details on topic in the following article:
http://www.nighttale.net/onjava/integrating-activemq-web-console.html,
but I guess it should be updated a bit. I'll see to do it soon.

I guess what you were seeing is the web console of some other ActiveMQ
instance you are running on your machine.



Hope this helps

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



JeanNiBee wrote:
> I guess this will be a case of "RTFM" for me. ;)
>
> I just was looking at the Web Console that is provided from the default
> 'getting started' so I didn't really configure anything other than click the
> link in the doc.
>
> Pointer to any info to help me understand this would be great. (As is the
> ActiveMQ in action  book in your sig) :)
>
> Thanks
>
>
> Dejan Bosanac-3 wrote:
>   
>> Hi,
>>
>> I can't see fro you example how you initialize your web console. Are you
>> sure it points to the right broker?
>>
>> Cheers
>>
>> -- 
>> Dejan Bosanac
>>
>>
>> http://www.ttmsolutions.com - get a free ActiveMQ user guide
>>
>> ActiveMQ in Action - http://www.manning.com/snyder/
>> Scripting in Java - http://www.scriptinginjava.net
>>
>>
>>
>> JeanNiBee wrote:
>>     
>>> Hi
>>>
>>> Using Spring and ActiveMQ in a test environment.
>>>
>>> I have all my setup working, far as I can tell, as my Sender sends out
>>> messages and my MessageListener picks them up.
>>>
>>> As a test I'm sending 100,000 message through the queue and having my
>>> MessageListener sleep for 5 seconds in between each (to ensure build up
>>> in
>>> the queue itself).
>>>
>>> When I go to the admin web console and look at the status of my queue it
>>> always says '0' doe all four columns of Messages Pending, Consumers,
>>> Received and Sent.
>>>
>>> I keep refreshing to no avail but my listener (that is logging the
>>> message
>>> text to a file / console) keeps popping a new message to my logs every 5
>>> seconds.
>>>
>>> Not sure how to proceed to debug this. VERY new to using the tool and I
>>> admit I got a bit lost running through all the documentation I could
>>> find.
>>>
>>> For kicks.. my spring configs. (Thanks Cyrill LeClerc if you ever read
>>> this.. your forum post got me more than just jump started on this)
>>>
>>> <pre>
>>> <bean id="fileUploadController"
>>>   class="com.tosg.web.FileUploadController">
>>>   <property name="sender" ref="queueSender"/>
>>>   <property name="numberOfMessages" value="100000"/>
>>>   <property name="listener" ref="messageListener"/>
>>> </bean>
>>>
>>> <bean id="activeMqConnectionFactory"
>>>    class="org.apache.activemq.spring.ActiveMQConnectionFactory">
>>>    <property name="brokerURL"
>>>      
>>> value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"
>>> />
>>> </bean>
>>>
>>> <bean id="connectionFactory"
>>>    class="org.springframework.jms.connection.SingleConnectionFactory">
>>>    <property name="targetConnectionFactory"
>>>       ref="activeMqConnectionFactory" />
>>> </bean>
>>>
>>> <bean id="jmsTemplate"
>>>    class="org.springframework.jms.core.JmsTemplate">
>>>    <property name="connectionFactory" ref="connectionFactory" />
>>>    <property name="defaultDestinationName" value="jbtesting" />
>>>    <property name="pubSubDomain" value="false" />
>>> </bean>
>>>
>>> <bean id="listenerContainer"
>>>   
>>> class="org.springframework.jms.listener.DefaultMessageListenerContainer">
>>>    <property name="concurrentConsumers" value="5" />
>>>    <property name="connectionFactory" ref="connectionFactory" />
>>>    <property name="destinationName" value="jbtesting" />
>>>    <property name="messageListener" ref="messageListener" />
>>> </bean>
>>>
>>> <bean id="queueSender" class="com.tosg.jms.SampleSender">
>>>    <property name="jmsTemplate" ref="jmsTemplate" />
>>> </bean>
>>>
>>> <bean id="messageListener" class="com.tosg.jms.SampleListener" />
>>> </pre>
>>>
>>>   
>>>       
>>
>>     
>
>   

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net


Re: Admin Web Console not showing messages in queue.

Posted by JeanNiBee <Jo...@nuance.com>.
I guess this will be a case of "RTFM" for me. ;)

I just was looking at the Web Console that is provided from the default
'getting started' so I didn't really configure anything other than click the
link in the doc.

Pointer to any info to help me understand this would be great. (As is the
ActiveMQ in action  book in your sig) :)

Thanks


Dejan Bosanac-3 wrote:
> 
> Hi,
> 
> I can't see fro you example how you initialize your web console. Are you
> sure it points to the right broker?
> 
> Cheers
> 
> -- 
> Dejan Bosanac
> 
> 
> http://www.ttmsolutions.com - get a free ActiveMQ user guide
> 
> ActiveMQ in Action - http://www.manning.com/snyder/
> Scripting in Java - http://www.scriptinginjava.net
> 
> 
> 
> JeanNiBee wrote:
>> Hi
>>
>> Using Spring and ActiveMQ in a test environment.
>>
>> I have all my setup working, far as I can tell, as my Sender sends out
>> messages and my MessageListener picks them up.
>>
>> As a test I'm sending 100,000 message through the queue and having my
>> MessageListener sleep for 5 seconds in between each (to ensure build up
>> in
>> the queue itself).
>>
>> When I go to the admin web console and look at the status of my queue it
>> always says '0' doe all four columns of Messages Pending, Consumers,
>> Received and Sent.
>>
>> I keep refreshing to no avail but my listener (that is logging the
>> message
>> text to a file / console) keeps popping a new message to my logs every 5
>> seconds.
>>
>> Not sure how to proceed to debug this. VERY new to using the tool and I
>> admit I got a bit lost running through all the documentation I could
>> find.
>>
>> For kicks.. my spring configs. (Thanks Cyrill LeClerc if you ever read
>> this.. your forum post got me more than just jump started on this)
>>
>> <pre>
>> <bean id="fileUploadController"
>>   class="com.tosg.web.FileUploadController">
>>   <property name="sender" ref="queueSender"/>
>>   <property name="numberOfMessages" value="100000"/>
>>   <property name="listener" ref="messageListener"/>
>> </bean>
>>
>> <bean id="activeMqConnectionFactory"
>>    class="org.apache.activemq.spring.ActiveMQConnectionFactory">
>>    <property name="brokerURL"
>>      
>> value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"
>> />
>> </bean>
>>
>> <bean id="connectionFactory"
>>    class="org.springframework.jms.connection.SingleConnectionFactory">
>>    <property name="targetConnectionFactory"
>>       ref="activeMqConnectionFactory" />
>> </bean>
>>
>> <bean id="jmsTemplate"
>>    class="org.springframework.jms.core.JmsTemplate">
>>    <property name="connectionFactory" ref="connectionFactory" />
>>    <property name="defaultDestinationName" value="jbtesting" />
>>    <property name="pubSubDomain" value="false" />
>> </bean>
>>
>> <bean id="listenerContainer"
>>   
>> class="org.springframework.jms.listener.DefaultMessageListenerContainer">
>>    <property name="concurrentConsumers" value="5" />
>>    <property name="connectionFactory" ref="connectionFactory" />
>>    <property name="destinationName" value="jbtesting" />
>>    <property name="messageListener" ref="messageListener" />
>> </bean>
>>
>> <bean id="queueSender" class="com.tosg.jms.SampleSender">
>>    <property name="jmsTemplate" ref="jmsTemplate" />
>> </bean>
>>
>> <bean id="messageListener" class="com.tosg.jms.SampleListener" />
>> </pre>
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Admin-Web-Console-not-showing-messages-in-queue.-tp20889624p20897065.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Admin Web Console not showing messages in queue.

Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi,

I can't see fro you example how you initialize your web console. Are you
sure it points to the right broker?

Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



JeanNiBee wrote:
> Hi
>
> Using Spring and ActiveMQ in a test environment.
>
> I have all my setup working, far as I can tell, as my Sender sends out
> messages and my MessageListener picks them up.
>
> As a test I'm sending 100,000 message through the queue and having my
> MessageListener sleep for 5 seconds in between each (to ensure build up in
> the queue itself).
>
> When I go to the admin web console and look at the status of my queue it
> always says '0' doe all four columns of Messages Pending, Consumers,
> Received and Sent.
>
> I keep refreshing to no avail but my listener (that is logging the message
> text to a file / console) keeps popping a new message to my logs every 5
> seconds.
>
> Not sure how to proceed to debug this. VERY new to using the tool and I
> admit I got a bit lost running through all the documentation I could find.
>
> For kicks.. my spring configs. (Thanks Cyrill LeClerc if you ever read
> this.. your forum post got me more than just jump started on this)
>
> <pre>
> <bean id="fileUploadController"
>   class="com.tosg.web.FileUploadController">
>   <property name="sender" ref="queueSender"/>
>   <property name="numberOfMessages" value="100000"/>
>   <property name="listener" ref="messageListener"/>
> </bean>
>
> <bean id="activeMqConnectionFactory"
>    class="org.apache.activemq.spring.ActiveMQConnectionFactory">
>    <property name="brokerURL"
>       value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false"
> />
> </bean>
>
> <bean id="connectionFactory"
>    class="org.springframework.jms.connection.SingleConnectionFactory">
>    <property name="targetConnectionFactory"
>       ref="activeMqConnectionFactory" />
> </bean>
>
> <bean id="jmsTemplate"
>    class="org.springframework.jms.core.JmsTemplate">
>    <property name="connectionFactory" ref="connectionFactory" />
>    <property name="defaultDestinationName" value="jbtesting" />
>    <property name="pubSubDomain" value="false" />
> </bean>
>
> <bean id="listenerContainer"
>    class="org.springframework.jms.listener.DefaultMessageListenerContainer">
>    <property name="concurrentConsumers" value="5" />
>    <property name="connectionFactory" ref="connectionFactory" />
>    <property name="destinationName" value="jbtesting" />
>    <property name="messageListener" ref="messageListener" />
> </bean>
>
> <bean id="queueSender" class="com.tosg.jms.SampleSender">
>    <property name="jmsTemplate" ref="jmsTemplate" />
> </bean>
>
> <bean id="messageListener" class="com.tosg.jms.SampleListener" />
> </pre>
>
>