-
1. Re: Setting JMS Message properties in SY JMS Reference
trohovsky Apr 2, 2014 11:52 AM (in response to anikulin)1 of 1 people found this helpfulHi Anton,
I have described how to set properties in a bean implementation in the other thread Rules Reference Called from a Bean implementation. Just don't forgot to set an outbound ContextMapper to map required properties.
What binding are you using? JCA or Camel JMS? If JCA, then it is not supported yet to set JMSType dynamically, however Tomo resolved that and it's going to be present in 2.0 [SWITCHYARD-1831] Specify the destination dynamically via context property on JCA outbound - JBoss Issue Tracker You can still configure that statically. It seem that Camel JMS doesn't support dynamic setting of JMSType, so using it as a workaround is not applicable in this case.
Tomas
-
2. Re: Setting JMS Message properties in SY JMS Reference
anikulin Apr 2, 2014 6:14 PM (in response to trohovsky)Hi Tomas
Thanks a lot for your reply, but I meant a bit different. I want to use SY JMS Binding to implement sending JMS messages (JMS - SwitchYard - Project Documentation Editor), but it seems there is no jmsType and jmsProperty options for References.
Thanks, Anton
-
3. Re: Re: Setting JMS Message properties in SY JMS Reference
trohovsky Apr 3, 2014 4:50 AM (in response to anikulin)1 of 1 people found this helpfulThen just add
<jms:additionalUriParameters>
<jms:parameter name="jmsMessageType" value="Text"/>
</jms:additionalUriParameters>
to the binding.jms element. The value attribute can be one of Bytes, Map, Object, Stream, Text. See the Camel docs: http://camel.apache.org/jms.html
. Property mapping should work as I described in my previous post. If not, then just switch to the JCA binding.
Tomas
-
4. Re: Setting JMS Message properties in SY JMS Reference
anikulin Apr 10, 2014 4:34 PM (in response to trohovsky)Thanks for help, Tomas. Yes, i see that it can be easily implemented using Camel Routes, but just wanted to know if it is possible to do the same using SwitchYard JMS Binding.
-
5. Re: Setting JMS Message properties in SY JMS Reference
kcbabo Apr 10, 2014 4:43 PM (in response to anikulin)The SwitchYard JMS binding is the camel-jms component. The config excerpt Tomas provided is not for a Camel route, it's for the JMS binding configuration. You can add additional URI properties when you add a JMS binding using the wizard or when editing the properties of an existing JMS binding. With the wizard, it's on the third page (click Next twice). On the properties page, it's on the Advanced Details tab.