L.S.,
If you're using a Camel JMS endpoint to send to WebSphere MQ, the
properties should be translated automatically (cfr.
http://camel.apache.org/jms.html, search for "jmsKeyFormatStrategy"
for more details).
However, if you're still using a JBI JMS endpoint and don't have a
plan to migrate to Camel JMS yet, you should be able to use the
configuration below to just drop all of the properties or filter out
the ones the ones disallowed by the spec.
<jms:provider service="orders:orders"
endpoint="production"
destinationName="QLIN.DOC.ORDERS"
connectionFactory="#ConnectionFactory"
marshaler="#Marshaler" />
<bean id="Marshaler"
class="org.apache.servicemix.jms.endpoints.DefaultProviderMarshaler">
<!-- <property name="copyProperties" value="false"/> - use this
if you just want to drop all properties -->
<property name="needJavaIdentifiers" value="true"/>
</bean>
Regards,
Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
On Mon, Mar 7, 2011 at 9:31 AM, Ekatus Atimoss <[email protected]> wrote:
> Dear fellow servicemix users,
>
> some of you surely know the jbi tutorial where data is read from a file and
> put into another file and on a queue. I've tried this with a camel route and
> MQ Series and got punished by MQ Series again. This time it's about a
> com.obm.msg.client.jms.DetailedMessageFormatException showing JMSCC0049 Der
> Eigenschaftsname 'org.apache.servicemix.file.path' ist keine gültige
> Java(tm)-ID. Which should translate as the property name
> 'org.apache.servicemix.file.path' is not a valid Java(tm)-ID. I reckon that
> this property is set by the file poller and stuffed inside a message header
> which in turn is stuffed in the JMS message, causing MQ Series to choke (but
> not ActiveMQ!). Despite the question if MQ has to be such a Diva - does
> somebody know how to filter these unwanted attribute? In the tutorial its
> just the file poller sending to the camel wiretap and from there it goes to
> JMS (MQ Series).
>
> Kind regards
> Michael
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/Properties-copied-from-servicemix-file-into-message-MQ-hiccups-tp3412083p3412083.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.