Hi,
I have a Spring Boot application that I want to connect Solace to Apache Artemis. I have an instance of Solace installed on machine “A”, and Artemis installed on machine “B”.
Solace is configured with JNDI mapped to a queue.
I have a Spring Boot application which defines Beans for the Solace (JdniTemplate, JmsComponent, etc). I also have Beans defined for Artemis (ActiveMQConnectionFactory, JmsComponent)
I have a XML Camel Route defined such as going from the Solace queue to an Artemis queue.
When I run the Spring Boot application, I am getting an error below:
Note that “q2” is the queue created in Artemis. I’m new to JNDI. The stack trace implies it is trying to resolve the Artemis “q2” with SolJNDIInitialContextImpl, which I assume may be an issue - that Solace doesn’t know how to reach Artemis.
Can anyone help explain what the issue may be - and how I may be able to achieve my desired result of a camel route from Solace to Artemis?
ID:fe80:0:0:0:2d6a:8507:abb4:7ef4%wireless_32770c5c5196824dded20:0 on ExchangeId: 428AA2C07413092-0000000000000000). Exhausted after delivery attempt: 1 caught: org.springframework.jms.support.destination.DestinationResolutionException: Destination [q2] not found in JNDI
Message History (source location and message history is disabled)
Source ID Processor Elapsed (ms)
route2/route2 from[solaceJmsComponent://queue:billqueue] 2127
…
route2/to2 artemisJmsComponent:queue:q2 0
Stacktrace
org.springframework.jms.support.destination.DestinationResolutionException: Destination [q2] not found in JNDI
at org.springframework.jms.support.destination.JndiDestinationResolver.resolveDestinationName(JndiDestinationResolver.java:126) ~[spring-jms-6.2.5.jar!/:6.2.5]
at org.springframework.jms.support.destination.JmsDestinationAccessor.resolveDestinationName(JmsDestinationAccessor.java:115) ~[spring-jms-6.2.5.jar!/:6.2.5]
at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.lambda$send$0(JmsConfiguration.java:590) ~[camel-jms-4.11.0.jar!/:4.11.0]
Caused by: javax.naming.NameNotFoundException: JNDI lookup of “q2” failed - not found
at com.solacesystems.jndi.SolJNDIInitialContextFactory$SolJNDIInitialContextImpl.lookup(SolJNDIInitialContextFactory.java:241) ~[sol-jms-jakarta-10.27.0.jar!/:na]