You can use the destinationResolver option on the JMS endpoint to implement a resolver that can lookup your custom MQ queue object. http://camel.apache.org/jms.html
Which has a section about it and a link to this post http://old.nabble.com/JMS-queue---JNDI-instead-of-physical-name-td24484994.html On Thu, Feb 11, 2010 at 9:47 AM, Mond Ray Mond <opengr...@gmail.com> wrote: > > Thanks Christian. > > I have used those links already and checked again but they are limited in > their use of properties and constructor arguments. > > I have it all working in Spring as I am allowed to control these aspects on > the class. I cannot see an equivalent mechanism to provide the same degree > of control on a Camel endpoint. > > So it's not really a MQSeries question (despite my subject line) but rather > a question of how to configure Camel in an equivalent fashion to Spring. > > Your response has helped me to clarify this so I have changed the subject to > reflect this aspect. > > Best regards > > Ray > > > > Christian Mueller wrote: >> >> Hey Ray! >> >> May be this link is helpful: >> http://old.nabble.com/Camel-and-IBM-MQ-Series-td24524277.html >> >> Regards, >> Christian >> >> On Wed, Feb 10, 2010 at 1:51 PM, Mond Ray Mond <opengr...@gmail.com> >> wrote: >> >>> >>> In Spring I have the following queue defined: >>> >>> <!-- targetClient is used to tell the MQ system that the target is MQ >>> (1) not JMS (0) --> >>> <bean id="pocBridge.imqOutgoingQueue" class="com.ibm.mq.jms.MQQueue" >>> p:targetClient="1"> >>> <constructor-arg value="MQSD"/> >>> <constructor-arg value="TQS.QLOC.RECEIVE.HEAD.O.AMQD1"/> >>> </bean> >>> >>> All of these arguments / properties are needed to make the queue work. >>> How >>> do I tell Camel to use this queue reference or how can I configure this >>> queue in Camel DSL? >>> >>> I assumed that the JMS component would have some option to set some >>> properties on the implementation but I can't see how to do that. >>> >>> Any help would be appreciated. >>> >>> Best regards >>> >>> Ray >>> -- >>> View this message in context: >>> http://old.nabble.com/how-to-configure-sending-to-MQseries-tp27530729p27530729.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> > > -- > View this message in context: > http://old.nabble.com/how-to-configure-sending-to-MQseries-tp27530729p27543967.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus