If no one has looked at this it can be ignored.

I was able to figure this out by adding the following entry to the route, 
jmsMessageType=Bytes

Jason Jackson


-----Original Message-----
From: Jason Jackson <jason.jack...@itechag.com.INVALID> 
Sent: Monday, May 13, 2024 10:40 AM
To: users@activemq.apache.org
Subject: ActvieMQ BASE64 Message Download from IBM MQ

[You don't often get email from jason.jack...@itechag.com.invalid. Learn why 
this is important at https://aka.ms/LearnAboutSenderIdentification ]

CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


I am running into an issue with downloading a BASE64 type message from IBM MQ 
into ActiveMQ.

ActiveMQ is connecting to IBM MQ using Camel/Spring and pulling the message 
down.  I believe when the message is pulled from IBM MQ it is being converted 
to a BYTE message instead of BASE64.

The Camel/Spring version that is used is the one that comes with the ActiveMQ 
release 5.18.4.

My guess is there is a simple conversion entry that needs to be added to the 
route but can not determine which setting is correct.

I have tried the following:

Option 1
<dataFormats>
    <base64 lineSeparator="&#10";" id="base64withNewLine"/>
    <base64 lineLength="64" id="base64withLineLength"/> </dataFormaats>

<route>
    <from uri="ibmmq:queue1"/>
        <marshal ref="base64withLineLength64"/>
    <to uri="activemq:queue1"/>
</route>

Option 2
<route>
    <from uri="ibmmq:queue1"/>
        <marshal>
              <base64/>
         </marshal>
    <to uri="activemq:queue1"/>
</route>

Neither of these work and ActiveMQ fails to start with an error being posted in 
the log file stating no base64 classes found and/or something similar.

Does any have experience or know of a way to download/move a base64 message 
from IBM MQ to ActiveMQ?

Thanks

Jason

Reply via email to