All Apps and Add-ons

JMS Messaging Modular Input connection to Jboss: Why am I getting NameNotFoundException?

dwood023
Explorer

I'm trying to connect to a preconfigured JMS queue inside Jboss Hornetq using the JMS Messaging Modular Input add-on. I'm receiving the following error:

ERROR ExecProcessor - message from "python D:/Splunk/etc/apps/jms_ta/bin/jms.py" Stanza jms://queue/MyQueue: Error connecting : javax.naming.NameNotFoundException: -- service jboss.naming.context.java.jboss.exported.MyQueue

With the following configuration:

Queue name -- queue/MyQueue
JMS Provider URL -- remote://localhost:4447
JNDI initial context factory -- org.jboss.naming.remote.client.InitialContextFactory
JMS Connection factory -- jms/RemoteConnectionFactory

I'm inclined to trust the above configuration - it corresponds to my app server configuration.

What I'm currently suspecting is that jboss.naming.context.java.jboss.exported.MyQueue from the error message is relevant - I've seen the actual JNDI used in other applications resolves to jboss.naming.context.java.jboss.exported.jms.queue.MyQueue - could the missing ".jms.queue" in my jndi be indicative of anything?

From the research I've done, I found some people have had a similar problem with a missing ".jms.queue", some eccentricity of Jboss has resulted in malformed JNDI with some applications - could this be what's happening? Has anyone else tried to connect to Jboss with the JMS app?

0 Karma
1 Solution

dwood023
Explorer

Fixed it, for jboss you need to name the queue [jms://queue/jms/queue/{QueueName}], the syntax just looks a little redundant, but you need it to work around hornetq.

View solution in original post

0 Karma

dwood023
Explorer

Fixed it, for jboss you need to name the queue [jms://queue/jms/queue/{QueueName}], the syntax just looks a little redundant, but you need it to work around hornetq.

0 Karma

splunkaspirant
New Member

Hello dwood023 i am finding similar error. I am getting logs from TIBCO through its MQ. do i need to add the queue name in the same format.

Thanks.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...