Skip to content

Instantly share code, notes, and snippets.

@jpoetker
Created October 2, 2012 14:34
Show Gist options
  • Save jpoetker/3819598 to your computer and use it in GitHub Desktop.
Save jpoetker/3819598 to your computer and use it in GitHub Desktop.
OSGi Blueprint for JMS on Websphere MQ
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" default-availability="mandatory">
<bean id="connectionFactory" class="com.ibm.mq.jms.MQXAConnectionFactory">
<property name="transportType" value="1"/>
<property name="hostName" value="192.168.56.4"/>
<property name="port" value="1414"/>
<property name="queueManager" value="jpoetker.poc.mqm"/>
<property name="channel" value="SYSTEM.DEF.SVRCONN"/>
</bean>
<bean id="jmsComponent" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="connectionFactory"/>
<!-- Cache Level should be none or auto for XA -->
<property name="cacheLevelName" value="CACHE_NONE"/>
<property name="transactionManager">
<reference interface="org.springframework.transaction.PlatformTransactionManager"/>
</property>
<property name="transacted" value="true"/>
<property name="testConnectionOnStartup" value="true"/>
</bean>
<service ref="connectionFactory" interface="javax.jms.ConnectionFactory">
<service-properties>
<entry key="system" value="ESB"/>
</service-properties>
</service>
<service ref="jmsComponent" interface="org.apache.camel.Component">
<service-properties>
<entry key="system" value="ESB"/>
</service-properties>
</service>
</blueprint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment