Skip to content

Instantly share code, notes, and snippets.

@albuquerquev
Created March 31, 2011 09:11
Show Gist options
  • Save albuquerquev/896077 to your computer and use it in GitHub Desktop.
Save albuquerquev/896077 to your computer and use it in GitHub Desktop.
Connecting To WebSphere MQ Using Spring JMS And Maven Post - Spring Configuration (http://goo.gl/KQ2rh)
<!-- WebSphere MQ Connection Factory -->
<bean id="mqConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
<property name="hostName">
<value>${queue_hostname}</value>
</property>
<property name="port">
<value>${queue_port}</value>
</property>
<property name="queueManager">
<value>${queue_manager}</value>
</property>
<property name="transportType">
<value>1</value>
</property>
</bean>
<!-- JMS Queue Connection Factory -->
<bean id="jmsQueueConnectionFactory"
class="org.springframework.jms.connection.SingleConnectionFactory102">
<property name="targetConnectionFactory">
<ref bean="mqConnectionFactory" />
</property>
<property name="pubSubDomain">
<value>false</value>
</property>
</bean>
<!-- JMS Destination Resolver -->
<bean id="jmsDestinationResolver"
class="org.springframework.jms.support.destination.DynamicDestinationResolver">
</bean>
<!-- JMS Queue Template -->
<bean id="jmsQueueTemplate" class="org.springframework.jms.core.JmsTemplate102">
<property name="connectionFactory">
<ref bean="jmsQueueConnectionFactory" />
</property>
<property name="destinationResolver">
<ref bean="jmsDestinationResolver" />
</property>
<property name="pubSubDomain">
<value>false</value>
</property>
<property name="receiveTimeout">
<value>20000</value>
</property>
</bean>
@gdiazs
Copy link

gdiazs commented Sep 19, 2016

Hi!. I configured my project like this, but I need an JNDI approach. Did you configured in that way? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment