Hi, Thanks for sharing your solution!
Freeman ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-1-1, at 上午3:42, Ravi wrote: > For the benefit of the forum, I am able to get AQ integration working and a > sample blue print file is below: > <?xml version="1.0" encoding="UTF-8" ?> > - <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" > xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" > xmlns:amq="http://activemq.org/config/1.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> > <bean > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" > /> > <bean id="requiredBeanForOracleAq" > class="org.apache.activemq.ActiveMQConnectionFactory" /> > - <bean id="connectionFactoryOracleAQQueue" class="oracle.jms.AQjmsFactory" > factory-method="getQueueConnectionFactory"> > <argument index="0" value="jdbc:oracle:thin:@IP:PORT:SID" /> > <argument index="1" value="" /> > </bean> > - <bean id="oracleQueueCredentials" > class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"> > <property name="targetConnectionFactory" > ref="connectionFactoryOracleAQQueue" /> > - <property name="username"> > <value>abc</value> > </property> > - <property name="password"> > <value>xyz</value> > </property> > </bean> > - <bean id="oracleQueue" > class="org.apache.camel.component.jms.JmsComponent"> > <property name="connectionFactory" ref="oracleQueueCredentials" /> > </bean> > - <broker useJmx="true" persistent="false" > xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" > dataDirectory="C:\ServiceMix\apache-servicemix-full-4.4.2\apache-servicemix-4.4.2\data"> > - <transportConnectors> > <transportConnector name="openwire" uri="tcp://localhost:61001" /> > </transportConnectors> > </broker> > - <camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint"> > - <route> > <from uri="file:\\group\interfaces$\invops\tlms_in\basexml\tmp" /> > <convertBodyTo type="java.lang.String" charset="UTF-8" /> > <to uri="activemq:queue:queue.inboundOracleAQqueue" /> > </route> > - <route> > <from uri="activemq:queue:queue.inboundOracleAQqueue" /> > <to uri="oracleQueue:queue:ORACLE_QUEUE" /> > </route> > </camelContext> > </blueprint> > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Integrating-ServiceMIx-4-4-2-with-Oracle-AQ-tp5715247p5715357.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
