You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by tippse <fe...@gmx.de> on 2016/09/06 12:39:03 UTC
Configuring Message Transformatin on ConnectionFactory (ACTIVEMQ)
as explained here: ( http://activemq.apache.org/message-transformation.html
<http://activemq.apache.org/message-transformation.html> ) a Message
Transformer can be configured on the connection factory. That way all
objectmessages are transformed automatically.
Is there a way to use this in camel?
I know, that a transformation can be configured via dataformat. but as far
as I know, this must be on configured in every single route using activmq. I
would like to avoid this.
thanks a log,
febi
--
View this message in context: http://camel.465427.n5.nabble.com/Configuring-Message-Transformatin-on-ConnectionFactory-ACTIVEMQ-tp5787239.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Configuring Message Transformatin on ConnectionFactory
(ACTIVEMQ)
Posted by tippse <fe...@gmx.de>.
sorry, I didn't realise, that the linked article is not up-to-date.
the class org.apache.activemq.util.oxm.XStreamMessageTransformer seems to be
deprecated after activemq 5.7.0.
I couldn't find proper replacement. any suggestions here are welcome, but
this ist obviously no camel problem.
I got it working though, by using my own custom transformer, extending
org.apache.activemq.MessageTransformerSupport
<bean id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="myurl" />
<property name="transformer" ref="activmqMessageTransformer" />
</bean>
<bean id="activmqMessageTransformer"
class="de.it2m.mr.v4all.common.XStreamMessageTransformer">
--
View this message in context: http://camel.465427.n5.nabble.com/Configuring-Message-Transformatin-on-ConnectionFactory-ACTIVEMQ-tp5787239p5787242.html
Sent from the Camel - Users mailing list archive at Nabble.com.