<?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 Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251927#M28893</link>
    <description>&lt;P&gt;You can't possibly have properly searched for your inputs.conf file because the JMS stanza gets persisted there and only there.&lt;/P&gt;

&lt;P&gt;Look somewhere down under SPLUNK_HOME/etc/apps&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 10:43:58 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2015-12-01T10:43:58Z</dc:date>
    <item>
      <title>How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251922#M28888</link>
      <description>&lt;P&gt;I'm trying to connect to a Oracle AQ via JMS.&lt;/P&gt;

&lt;P&gt;I'm facing the following error message.&lt;/P&gt;

&lt;P&gt;Stanza jms://queue/:quelogentry : Error connecting : javax.naming.NamingException: Cannot resolve name:quelogentry [Root exception is javax.naming.NamingException: Unrecognized prefix in: quelogentry]&lt;BR /&gt;
    at oracle.jms.AQjmsContext.lookup(AQjmsContext.java:170)&lt;BR /&gt;
    at javax.naming.InitialContext.lookup(Unknown Source)&lt;BR /&gt;
    at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.connect(Unknown Source)&lt;BR /&gt;
    at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.run(Unknown Source)&lt;BR /&gt;
 Caused by: javax.naming.NamingException: Unrecognized prefix in: quelogentry&lt;BR /&gt;
    at oracle.jms.AQjmsContext.lookup(AQjmsContext.java:149)&lt;BR /&gt;
    ... 3 more&lt;/P&gt;

&lt;P&gt;However I have no idea how I need to configure the prefix so that the queues name is accepted.&lt;BR /&gt;
For now I keep short, so please let me know if I can provide additional information.&lt;/P&gt;

&lt;P&gt;Thanks in advance for any hint/assistance.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Andreas&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 13:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251922#M28888</guid>
      <dc:creator>alaendle</dc:creator>
      <dc:date>2015-11-26T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251923#M28889</link>
      <description>&lt;P&gt;You are probably not entering your Oracle AQ JNDI queue name correctly.&lt;/P&gt;

&lt;P&gt;I know nothing about Oracle AQ , but what do the Oracle AQ docs say ?  What are the Oracle AQ JMS settings your configured on the Oracle AQ side ?&lt;/P&gt;

&lt;P&gt;Quick googling found : &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.oracle.com/cd/E21764_01/web.1111/e13727/implement.htm#JMSPG203"&gt;http://docs.oracle.com/cd/E21764_01/web.1111/e13727/implement.htm#JMSPG203&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.oracle.com/cd/E21764_01/web.1111/e13727/lookup.htm#JMSPG918"&gt;http://docs.oracle.com/cd/E21764_01/web.1111/e13727/lookup.htm#JMSPG918&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 09:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251923#M28889</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-11-27T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251924#M28890</link>
      <description>&lt;P&gt;No special settings on the DB side. Just a simple queue - but to dispel all doubts I can show you my SQL script creating the queue:&lt;/P&gt;

&lt;P&gt;execute DBMS_AQADM.CREATE_QUEUE_TABLE(Queue_table =&amp;gt; 'QUELOGENTRYINFO', Queue_payload_type =&amp;gt; 'SYS.AQ$_JMS_TEXT_MESSAGE');&lt;BR /&gt;
execute DBMS_AQADM.CREATE_QUEUE(Queue_name =&amp;gt; 'QUELOGENTRY', Queue_table =&amp;gt; 'QUELOGENTRYINFO', Max_retries =&amp;gt;  5);&lt;BR /&gt;
execute DBMS_AQADM.START_QUEUE(Queue_name =&amp;gt; 'QUELOGENTRY');&lt;/P&gt;

&lt;P&gt;I have successfully connected the queue from logstash with the following configuration: &lt;/P&gt;

&lt;P&gt;:jndi_name: ConnectionFactory&lt;BR /&gt;
  :jndi_context:&lt;BR /&gt;
    java.naming.factory.initial: oracle.jms.AQjmsInitialContextFactory&lt;BR /&gt;
    java.naming.security.principal: my_user&lt;BR /&gt;
    java.naming.security.credentials: my_password&lt;BR /&gt;
    db_url: 'my_url'&lt;/P&gt;

&lt;P&gt;destination =&amp;gt; "quelogentry"&lt;/P&gt;

&lt;P&gt;My problem can be reduced to the question how to translate these settings to a valid JMS Messaging Modular Input configuration. For now I couldn't find out how I could establish a connection to Oracle AQ.&lt;/P&gt;

&lt;P&gt;Hope this gives you a better understanding of my problem.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Andreas&lt;/P&gt;

&lt;P&gt;P.S.: May I vote for Java Runtime 1.8 support of the JMS plugin? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251924#M28890</guid>
      <dc:creator>alaendle</dc:creator>
      <dc:date>2020-09-29T08:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251925#M28891</link>
      <description>&lt;P&gt;Can you post your full inputs.conf stanza to assist in diagnosis ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 04:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251925#M28891</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-12-01T04:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251926#M28892</link>
      <description>&lt;P&gt;Sure, but I fear you need to tell me where I can find the JMS configuration. I looked through all inputs.conf files under my Splunk windows installation, but I didn't find one containing my specific JMS configuration. The file /etc/system/local/inputs.conf just contains two lines:&lt;BR /&gt;
[default]&lt;BR /&gt;
host = my_hostname&lt;BR /&gt;
Sorry, but I couldn't provide you more useful information at the moment &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 09:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251926#M28892</guid>
      <dc:creator>alaendle</dc:creator>
      <dc:date>2015-12-01T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251927#M28893</link>
      <description>&lt;P&gt;You can't possibly have properly searched for your inputs.conf file because the JMS stanza gets persisted there and only there.&lt;/P&gt;

&lt;P&gt;Look somewhere down under SPLUNK_HOME/etc/apps&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 10:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251927#M28893</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-12-01T10:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251928#M28894</link>
      <description>&lt;P&gt;Thanks. Now I've found the requested information:&lt;/P&gt;

&lt;P&gt;[jms://queue/:quelogentry]&lt;BR /&gt;
browse_mode = stats&lt;BR /&gt;
browse_queue_only = 0&lt;BR /&gt;
durable = 0&lt;BR /&gt;
hec_batch_mode = 0&lt;BR /&gt;
hec_https = 0&lt;BR /&gt;
index_message_header = 0&lt;BR /&gt;
index_message_properties = 0&lt;BR /&gt;
init_mode = jndi&lt;BR /&gt;
jms_connection_factory_name = ConnectionFactory&lt;BR /&gt;
jndi_initialcontext_factory = oracle.jms.AQjmsInitialContextFactory&lt;BR /&gt;
jndi_pass = user&lt;BR /&gt;
jndi_user = pass&lt;BR /&gt;
output_type = stdout&lt;BR /&gt;
sourcetype = _json&lt;BR /&gt;
strip_newlines = 1&lt;BR /&gt;
user_jndi_properties = db_url='my_connectionstring'&lt;/P&gt;

&lt;P&gt;Please let me know if I could provide additional information.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251928#M28894</guid>
      <dc:creator>alaendle</dc:creator>
      <dc:date>2020-09-29T08:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251929#M28895</link>
      <description>&lt;P&gt;Nothing looks particularly out of order config wise at a glance.Note: I dont know Oracle AQ settings though.&lt;/P&gt;

&lt;P&gt;Does quelogentry need to be case sensitive ?&lt;BR /&gt;
Any different behaviour if you run on JRE 8 ?&lt;BR /&gt;
As per the error message , is there a prefix you can add to quelogentry ? ie: foobar.quelogentry&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 01:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251929#M28895</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-12-02T01:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251930#M28896</link>
      <description>&lt;P&gt;Hi Damien,&lt;BR /&gt;
for sure you are right with the prefix; I've tested it also without prefix so I've attached the 'wrong' input.conf. Just imagine that the first line contains "[jms://queue/:Queues/quelogentry]".&lt;/P&gt;

&lt;P&gt;With this config the exception is raised a few lines later:&lt;BR /&gt;
Stanza jms://queue/:Queues/quelogentry : Error connecting : javax.naming.NameNotFoundException: Cannot resolve name:Queues/quelogentry&lt;BR /&gt;
at oracle.jms.AQjmsContext.lookup(AQjmsContext.java:184)&lt;BR /&gt;
at javax.naming.InitialContext.lookup(Unknown Source)&lt;BR /&gt;
at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.connect(Unknown Source)&lt;BR /&gt;
at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.run(Unknown Source)&lt;/P&gt;

&lt;P&gt;By usage of the JavaDecompiler I guess that there occurs a swallowed (inner) exception in AQjmsContext.initQ. Unfortunately I didn't find a way to configure the properties "oracle.jms.traceLevel"/"oracle.jms.traceFile" to gain further insight.&lt;/P&gt;

&lt;P&gt;Regarding JRE8, I wasn't able to use the addin under JRE8 - splunk just refused to load the plugin - should the addin be compatible with JRE8? But we could ignore the whole JRE8 thing here - I guess the more interesting part is the compatibility between the addin and Oracle AQ &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks for your assistance.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
Andreas&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 15:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251930#M28896</guid>
      <dc:creator>alaendle</dc:creator>
      <dc:date>2015-12-02T15:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Oracle AQ with JMS Messaging Modular Input? Is there a trick for the prefix?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251931#M28897</link>
      <description>&lt;P&gt;Your error is pretty normal in JNDI land : javax.naming.NameNotFoundException: Cannot resolve name:Queues/quelogentry&lt;/P&gt;

&lt;P&gt;Is not a matter of the JMS Mod Input's compatibility , it just means you are not providing a correct JNDI lookup name as your queue name.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 15:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-connect-to-Oracle-AQ-with-JMS-Messaging-Modular-Input-Is/m-p/251931#M28897</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-12-02T15:49:12Z</dc:date>
    </item>
  </channel>
</rss>

