You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sujeet Singh <su...@gmail.com> on 2024/08/26 10:14:12 UTC
Camel 4.6 issue
Hi,
I am using Java 17 with Camel 4.6.
I can see below error in logs
There are 1 parameters that could not be set on the endpoint. Check the uri
if the parameters are set correctly and that they are properties of the
endpoint. Unknown parameters=[[disableReplyTo=true]]
Can somebody please confirm if this parameter support has been removed from
JMS component in 4.6?
Thanks,
Sujeet
Re: Camel 4.6 activemq issue
Posted by Chirag <ch...@gmail.com>.
What is the advantage of bean approach ?
On Tue, Aug 27, 2024, 08:22 ski n <ra...@gmail.com> wrote:
> No, you need to put all to false
>
> On Tue, Aug 27, 2024 at 2:17 PM Sujeet Singh <su...@gmail.com>
> wrote:
>
> > 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, <su...@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, <ra...@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 <
> > sujeetkumarsingh@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, <ap...@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 <
> > >> > sujeetkumarsingh@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
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> >
>
Re: Camel 4.6 activemq issue
Posted by ski n <ra...@gmail.com>.
No, you need to put all to false
On Tue, Aug 27, 2024 at 2:17 PM Sujeet Singh <su...@gmail.com>
wrote:
> 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, <su...@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, <ra...@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 <
> sujeetkumarsingh@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, <ap...@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 <
> >> > sujeetkumarsingh@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
> >> > > >
> >> > >
> >> >
> >>
> >
>
Re: Camel 4.6 activemq issue
Posted by Sujeet Singh <su...@gmail.com>.
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, <su...@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, <ra...@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 <su...@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, <ap...@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 <
>> > sujeetkumarsingh@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
>> > > >
>> > >
>> >
>>
>
Re: Camel 4.6 activemq issue
Posted by ski n <ra...@gmail.com>.
Yes, but change it to false (everywhere):
lazy-init="false"
Lazy initialization can cause that beans aren't available (and are only
initialized under certain conditions).
On Tue, Aug 27, 2024 at 2:02 PM Sujeet Singh <su...@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, <ra...@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 <sujeetkumarsingh@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, <ap...@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 <
> > > sujeetkumarsingh@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
> > > > >
> > > >
> > >
> >
>
Re: Camel 4.6 activemq issue
Posted by Sujeet Singh <su...@gmail.com>.
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, <ra...@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 <su...@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, <ap...@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 <
> > sujeetkumarsingh@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
> > > >
> > >
> >
>
Re: Camel 4.6 activemq issue
Posted by ski n <ra...@gmail.com>.
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 <su...@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, <ap...@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 <
> sujeetkumarsingh@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
> > >
> >
>
Re: Camel 4.6 activemq issue
Posted by Sujeet Singh <su...@gmail.com>.
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, <ap...@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 <su...@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
> >
>
Re: Camel 4.6 activemq issue
Posted by Aurélien Pupier <ap...@redhat.com>.
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 <su...@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
>
Camel 4.6 activemq issue
Posted by Sujeet Singh <su...@gmail.com>.
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
Re: Camel 4.6 issue
Posted by Aurélien Pupier <ap...@redhat.com>.
Hello,
this parameter is still there in 4.7
https://camel.apache.org/components/next/jms-component.html#_component_option_disableReplyTo
https://camel.apache.org/components/next/jms-component.html#_endpoint_query_option_disableReplyTo
On Mon, Aug 26, 2024 at 12:23 PM Sujeet Singh <su...@gmail.com>
wrote:
> Hi,
> I am using Java 17 with Camel 4.6.
>
> I can see below error in logs
>
> There are 1 parameters that could not be set on the endpoint. Check the uri
> if the parameters are set correctly and that they are properties of the
> endpoint. Unknown parameters=[[disableReplyTo=true]]
>
> Can somebody please confirm if this parameter support has been removed from
> JMS component in 4.6?
>
> Thanks,
> Sujeet
>