You can use below steps to send the nProtobufevent to UM using JMS but on the recieving end it seems when we decode the bytes to string there are some BOM characters being returned on top of the actual message. I am suspecting this might be an encoding issue and you have to figure out the right encoding type to do get the right string. I will try to cover this in detail in my next blog post.
Message message=null;
nProtobufEvent evt=new nProtobufEvent(dynamicMessage.toByteArray(), UMMessageBuilder.getDescriptorForType().getName());
message = session.createBytesMessage();
((BytesMessage) message).writeBytes(evt.getEventData());
producer.send(message);
------------------------------
Akshith Arremreddy
------------------------------
Original Message:
Sent: Thu December 12, 2024 08:55 PM
From: Akshith Arremreddy
Subject: How to send a nProtobufEvent via the JMS API?
I have recently covered this using native UM API in Java and .NET on my blog. I will make some time to cover the JMS side as well. Stay tuned!
https://akshith-webmethods.blogspot.com/
------------------------------
Akshith Arremreddy
Original Message:
Sent: Wed December 11, 2024 03:51 PM
From: fml2 2
Subject: How to send a nProtobufEvent via the JMS API?
Hello,
has any new knowledge been collected on this?
Thank you.
------------------------------
fml2 2
Original Message:
Sent: Tue March 07, 2023 04:32 PM
From: webMethods Community Member
Subject: How to send a nProtobufEvent via the JMS API?
Any news on this? I was very happy that I could receive messages via JMS and thus use all of the support by the Spring Framework. It would be pity if I'd need to use the native API for sending (and thus have no Spring support).
Thank you!
#Universal-Messaging-Broker
#webMethods