By changing the way camel was converting the file I was able to pull the 
message down.

Jason Jackson
Senior Manager

Main Office: 703-639-0709
Direct: 202-888-3973
Cellular: 863-370-5324
Fax: 571-431-7618
www.itechag.com



-----Original Message-----
From: Jean-Baptiste Onofré <j...@nanthrax.net> 
Sent: Tuesday, May 21, 2024 11:39 AM
To: users@activemq.apache.org
Subject: Re: ActvieMQ BASE64 Message Download from IBM MQ

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.


Hi

Did you try to force the JMS message type to bytes ?

Regards
JB

On Mon, May 13, 2024 at 4:40 PM Jason Jackson 
<jason.jack...@itechag.com.invalid> wrote:
>
> 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