<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ESB: ActiveMQ : Queue's Message count in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/ESB-ActiveMQ-Queue-s-Message-count/m-p/2340772#M108776</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am using Talend ESB enterprise edition.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My requirement is to peek into a&amp;nbsp;queue (ActiveMQ) to&amp;nbsp;know if the queue is empty. I want to take some action&amp;nbsp;based on if the queue is empty.&lt;/P&gt; 
&lt;P&gt;1. Is there a way to&amp;nbsp;get Queue's message count&amp;nbsp;with in a Route?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/uIKVtnSbP9Sodkc3AE3_6w/U8aUhCtLmxEVvkAoFwqpmQ&amp;nbsp;this" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/uIKVtnSbP9Sodkc3AE3_6w/U8aUhCtLmxEVvkAoFwqpmQ&amp;nbsp;this&lt;/A&gt; talks about ActiveMQ plugin for Hyperic. But I do not understand if that helps in getting the message count&amp;nbsp;with in a Route. If so, what ESB component can help me read the message count?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. Can I have a ActiveMQ consumer that can just peek the message, but not removing it from the queue?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:18:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:18:16Z</dc:date>
    <item>
      <title>ESB: ActiveMQ : Queue's Message count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-ActiveMQ-Queue-s-Message-count/m-p/2340772#M108776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am using Talend ESB enterprise edition.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My requirement is to peek into a&amp;nbsp;queue (ActiveMQ) to&amp;nbsp;know if the queue is empty. I want to take some action&amp;nbsp;based on if the queue is empty.&lt;/P&gt; 
&lt;P&gt;1. Is there a way to&amp;nbsp;get Queue's message count&amp;nbsp;with in a Route?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/uIKVtnSbP9Sodkc3AE3_6w/U8aUhCtLmxEVvkAoFwqpmQ&amp;nbsp;this" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/uIKVtnSbP9Sodkc3AE3_6w/U8aUhCtLmxEVvkAoFwqpmQ&amp;nbsp;this&lt;/A&gt; talks about ActiveMQ plugin for Hyperic. But I do not understand if that helps in getting the message count&amp;nbsp;with in a Route. If so, what ESB component can help me read the message count?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. Can I have a ActiveMQ consumer that can just peek the message, but not removing it from the queue?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-ActiveMQ-Queue-s-Message-count/m-p/2340772#M108776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: ESB: ActiveMQ : Queue's Message count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-ActiveMQ-Queue-s-Message-count/m-p/2340773#M108777</link>
      <description>&lt;P&gt;not sure how it could work in route, but generally You can use REST interface of ActiveMQ for request many information&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;example:&lt;/P&gt; 
&lt;PRE&gt;http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationName=TEST,destinationType=Queue&lt;/PRE&gt; 
&lt;P&gt;return You:&lt;/P&gt; 
&lt;PRE&gt;{
  "request": {
    "mbean": "org.apache.activemq:brokerName=localhost,destinationName=TEST,destinationType=Queue,type=Broker",
    "type": "read"
  },
  "value": {
    "ProducerFlowControl": true,
    "AlwaysRetroactive": false,
    "Options": "",
    "MemoryUsageByteCount": 4376,
    "AverageBlockedTime": 0.0,
    "MemoryPercentUsage": 0,
    "CursorMemoryUsage": 4376,
    "InFlightCount": 4,
    "Subscriptions": [
      {
        "objectName": "org.apache.activemq:brokerName=localhost,clientId=ID_VA-iMac.local-53650-1505260517761-3_3,consumerId=ID_VA-iMac.local-53650-1505260517761-4_3_1_1,destinationName=TEST,destinationType=Queue,endpoint=Consumer,type=Broker"
      }
    ],
    "CacheEnabled": true,
    "DLQ": false,
     ..... skipped
    "MaxPageSize": 200,
   &lt;FONT color="#FF0000"&gt; "QueueSize": 4,&lt;/FONT&gt;
    "PrioritizedMessages": false,
    "MemoryUsagePortion": 1.0,
    ..... skipped
    "SlowConsumerStrategy": null
  },
  "timestamp": 1505261888,
  "status": 200
}&lt;/PRE&gt; 
&lt;P&gt;JOSN, where QueueSize - it is exactly what are You looking for&lt;BR /&gt;of course You need add authorisation parameters - basic HTTP authorisation&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 01:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-ActiveMQ-Queue-s-Message-count/m-p/2340773#M108777</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-09-13T01:23:03Z</dc:date>
    </item>
  </channel>
</rss>

