SpringBoot application and connect to Websphere MQ Activation Specification using Camel

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SpringBoot application and connect to Websphere MQ Activation Specification using Camel

arunkabraham
This post was updated on .
I have a Springboot application and I need to connect to Websphere MQ Activation specification JNDI using Apache Camel.

Can anyone suggest how can I do it and what is the best approach?

Any sample code will be helpful.
Reply | Threaded
Open this post in threaded view
|

Re: SpringBoot application and connect to Websphere MQ Activation Specification using Camel

arunkabraham
I am able to get it working with below code using Queue/Topic connection factory.

<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
    <property name="connectionFactory"> 
        <bean id="mqConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
           <property name="jndiName" value="tcfjndi"/>
           <property name="lookupOnStartup" value="false"/>
           <property name="cache" value="true" />
            <property name="proxyInterface"  value="javax.jms.TopicConnectionFactory" />
        </bean>
    </property>
  </bean> 

But I need it to be working with Activation specification(JNDI). Can you please help on this?
Reply | Threaded
Open this post in threaded view
|

Re: SpringBoot application and connect to Websphere MQ Activation Specification using Camel

arunkabraham
I am able to connect to the queue directly with the below code in XML But Activation specification JNDI configured in WAS is still not working.

In WAS Activation Specification I have is

JNDI Name: QueueActivationSpec Destination JNDI Name: TestQueue

Can someone help me to configure with this JNDIs?

 <bean class="org.springframework.jms.listener.endpoint.JmsMessageEndpointManager">
     <property name="activationSpec">
       <bean class="com.ibm.mq.connector.inbound.ActivationSpecImpl">
           <property name="destinationType" value="javax.jms.Queue"/>
           <property name="destination" value="DestQueueName"/>
           <property name="hostName" value="hostname"/>
           <property name="queueManager" value="QM"/>
           <property name="port" value="port"/>
           <property name="channel" value="CH01"/>
           <property name="transportType" value="CLIENT"/>           
        </bean>
      </property>
      <property name="messageListener" ref="messageListener"/>
      <property name="resourceAdapter" ref="myResourceAdapterBean"/>
</bean>
Reply | Threaded
Open this post in threaded view
|

Re: SpringBoot application and connect to Websphere MQ Activation Specification using Camel

arunkabraham
I am stuck with this. Can someone help me on this?