Extra characters message byte array

I am using the RPCBMQBridge (Natural 6.1.1 on HP-UX as the client). I am sending the following data to the bridge “”. When receiving the message with Java ACI, the string has extra data in front of it:

System.out.println(new String(brokerMessage.getMessage());

results in:


I tried various String constructors to convert the byte array, with no luck. Is there a chance that the bridge is doing this?

Hi Michael,

you are right: this is added by the bridge.

The intention of the BMQ Bridge is that both the sender and the receiver of the UOW is using the Bridge via RPC calls.

So if you change your Java program so that it is also calling the Bridge via the Java Wrapper the extra characters will disappear.