You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "ambarish.d" <d....@gmail.com> on 2012/08/22 20:34:06 UTC
Camel with IBM MQ JNDI
Hello
I am trying to use Camel with IBM MQ Queue. I want to set few properties
with JNDI on Queue Object.
I found few thread Destination Resolver is the answer but I am not able to
find any Java example of doing this.
I am using Java for creating Endpoint and Producer template.
Destination returned by Destinationresolver class is:
queue://TESTER.QUEUE?priority=4&persistence=2&targetClient=1
but after execution on producerTemplate.send() - I am getting
NullPointerException :: Unable to create Producer for Endpoint.
Can anybody please suggest proper way of using JndiDestinationResolver, it
will be great help.
-----
thanks
Amby
http://workingwithqueues.blogspot.com/
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-with-IBM-MQ-JNDI-tp5717890.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel with IBM MQ JNDI
Posted by Willem jiang <wi...@gmail.com>.
You need to send us the uri that you used in the producerTemplate.
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: willemjiang
On Thursday, August 23, 2012 at 2:34 AM, ambarish.d wrote:
> Hello
>
> I am trying to use Camel with IBM MQ Queue. I want to set few properties
> with JNDI on Queue Object.
> I found few thread Destination Resolver is the answer but I am not able to
> find any Java example of doing this.
>
> I am using Java for creating Endpoint and Producer template.
>
> Destination returned by Destinationresolver class is:
>
> queue://TESTER.QUEUE?priority=4&persistence=2&targetClient=1
>
> but after execution on producerTemplate.send() - I am getting
> NullPointerException :: Unable to create Producer for Endpoint.
>
> Can anybody please suggest proper way of using JndiDestinationResolver, it
> will be great help.
>
>
>
>
>
> -----
> thanks
> Amby
> http://workingwithqueues.blogspot.com/
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-with-IBM-MQ-JNDI-tp5717890.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
Re: Camel with IBM MQ JNDI
Posted by Willem jiang <wi...@gmail.com>.
Hi Amby,
It looks like you codes are not showed in the mailing list.
I just have a quick look at them from nabble site, you need setup the JMSComponent with the connectionFactory before create the JMSEndpoint.
BTW, it could be useful if you past the stack trace.
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: willemjiang
On Friday, August 24, 2012 at 4:01 AM, ambarish.d wrote:
> Hello Henryk
>
> I have edited the post and added my code here.
> As I said earlier, I am using Java for this route.
>
>
>
>
>
> -----
> thanks
> Amby
> http://workingwithqueues.blogspot.com/
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-with-IBM-MQ-JNDI-tp5717890p5717968.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
Re: Camel with IBM MQ JNDI
Posted by "ambarish.d" <d....@gmail.com>.
Hello Henryk
I have edited the post and added my code here.
As I said earlier, I am using Java for this route.
-----
thanks
Amby
http://workingwithqueues.blogspot.com/
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-with-IBM-MQ-JNDI-tp5717890p5717968.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel with IBM MQ JNDI
Posted by Henryk Konsek <he...@gmail.com>.
Hi Amby,
> Can anybody please suggest proper way of using JndiDestinationResolver, it
> will be great help.
Could you paste your routes here please :) . This will be a good
starting point, if you want somebody to advise you something :) .
Laters.
--
Henryk Konsek
http://henryk-konsek.blogspot.com