Hi Raymond, Did you mean to say, add lazy-init="true" in mqConnectionFactory as well.
Thanks, Sujeet On Tue, 27 Aug 2024, 17:32 Sujeet Singh, <sujeetkumarsi...@gmail.com> wrote: > Hi, > In the code that I pasted it is already set to lazy-init="true". > > Please correct me if I am wrong. > > Thanks, > Sujeet > > > On Tue, 27 Aug 2024, 17:26 ski n, <raymondmees...@gmail.com> wrote: > >> You are creating a custom component with its own name " jmsMQ". This is >> not >> uncommon for the JMSComponent, however in your case, the component is not >> available as endpoint when you load it. You may try to set >> lazy-init="true" >> from to false. >> >> Raymond >> >> On Tue, Aug 27, 2024 at 1:26 PM Sujeet Singh <sujeetkumarsi...@gmail.com> >> wrote: >> >> > Hi, >> > >> > The endpoint url is below >> > >> > jmsMQ://queue:ABC.INT.QUEUE >> > >> > jmsMQ is a bean reference id. Its definition is below >> > >> > <?xml version="1.0" encoding="UTF-8"?> >> > <beans >> > xmlns="http://www.springframework.org/schema/beans" >> > xmlns:context="http://www.springframework.org/schema/context" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jdbc=" >> > http://www.springframework.org/schema/jdbc" xmlns:util=" >> > http://www.springframework.org/schema/util" >> > xsi:schemaLocation=" >> > http://www.springframework.org/schema/beans >> > http://www.springframework.org/schema/beans/spring-beans.xsd >> > http://www.springframework.org/schema/jdbc >> > http://www.springframework.org/schema/jdbc/spring-jdbc.xsd >> > http://www.springframework.org/schema/context >> > http://www.springframework.org/schema/context/spring-context.xsd >> > http://www.springframework.org/schema/util >> > http://www.springframework.org/schema/util/spring-util.xsd"> >> > <context:annotation-config/> >> > <<bean id="jmsMQ" class="org.apache.camel.component.jms. JmsComponent" >> > lazy-init="true"> <property name="connectionFactory" >> > ref="mqConnectionFactory" /> >> > <property name="acknowledgementModeName" value="SESSION_TRANSACTED"/> >> > <property name="transacted" value="true"/> >> > </bean> >> > <bean id="jmsMQIDMS" class="org.apache.camel.component.jms. >> JmsComponent" >> > lazy-init="true"> <property name="connectionFactory" >> > ref="mqConnectionFactory" /> </bean> >> > <bean id="mgConnectionFactory" >> > class="com.ibm.mq.jms.MQQueueConnectionFactory"> <property >> > name="transportType"><value>${TRANSPORT_TYPE}</value></property> >> <property >> > name="queueManager"><value>${DBUS_MQ_QUEUE_MGR}</value></property> >> > <property name="hostName"><value>${DBUS_MO_HOST_NAME}</value></property> >> > <property name="port"><value>${DBUS_MO_PORT}</value></property> >> > <property name="channel"><value>${DBUS_MO_CHANNEL_NAME}</value> >> </property> >> > <property name="SSLCipherSuite"><value>${DBUS MQ CIPHER_SUITE}</value> >> > </property> >> > </bean> >> > </beans> >> > >> > Thanks, >> > Sujeet >> > >> > >> > >> > On Tue, 27 Aug 2024, 16:31 Aurélien Pupier, <apup...@redhat.com> wrote: >> > >> > > Hello, >> > > >> > > Can you precise the endpoint URL you are trying to use please? >> > > >> > > Note that there are different components to use ActiveMQ, each with >> > > specific ids and specific dependency: >> > > * JMS https://camel.apache.org/components/4.4.x/jms-component.html >> > > * ActiveMQ 5 >> > > https://camel.apache.org/components/4.4.x/activemq-component.html >> > > * ActiveMQ 6 >> > > https://camel.apache.org/components/next/activemq6-component.html >> > > >> > > regards, >> > > >> > > On Tue, Aug 27, 2024 at 11:50 AM Sujeet Singh < >> > sujeetkumarsi...@gmail.com> >> > > wrote: >> > > >> > > > Hi, >> > > > >> > > > We have added camel-activemq depedency for activemq. >> > > > >> > > > We are getting error like below >> > > > >> > > > Caused by: org.apache.camel.NoSuchEndpointException: No endpoint >> could >> > be >> > > > found for jmsMQ://queue:ABC.INT.QUEUE, please check your classpath >> > > contains >> > > > the needed Camel component jar. >> > > > at >> > > > >> > > > >> > > >> > >> org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:836) >> > > > >> > > > Anything we are missing here? >> > > > >> > > > Thanks, >> > > > Sujeet >> > > > >> > > >> > >> >