2008/12/4 James Strachan <[EMAIL PROTECTED]>:
> 2008/12/4 Stephen J <[EMAIL PROTECTED]>:
>>
>> If I try with camel I receive the following error:
>>
>> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
>> resolve endpoint: mqtestserver://TEST.OUTBOUND?targetClient=1 due to: There
>> are 1 parameters that couldn't be set on the endpoint. Check the uri if the
>> parameters are spelt correctly and that they are properties of the endpoint.
>> Unknown parameters=[{targetClient=1}]
>
> Sorry my mistake - Camel tries to interpret the ?foo=bar query
> notation on an endpoint URI - you have to instead set the destination
> name on the JmsEndpoint explicitly (e.g. use the constructor).
>
> I've nearly got an example in trunk - gimme an hour...

Here you go - here's an example, which only works against trunk mind
you (or tomorrows 2.0-SNAPSHOT)...

https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/config/JmsEndpointWithCustomDestinationTest-context.xml

this example shows how you can create a JmsEndpoint and customize the
exact JMS Destination object it uses.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to