Kafka Transaction with IBM MQ transaction - spring

I have some difficulties with next case :
Open kafka transaction
Open IBM MQ transaction
Save Message to kafka topic
Save message to IBM MQ queue
Save another message to another kafka topic
Close Kafka transaction
Close IBM MQ transaction
If we got any exception in any step we should do rollback.
Does anybody could help me with this problem?

Related

IBM mq jms listener with batch

I use spring boot application with jms listener.
I want to know , how to config IBM MQ JMSListener to consume batch messages instead single message. It is real?

Apache Nifi, PublishJMS processor fails while publishing json message to IBM Websphere MQ to overwrite JMS_IBM_* properties

with ref to post : PublishJMS processor fails while publishing json message to IBM Websphere MQ -- it helps.
But i have an another issue while publishing the message to ibm mq queue as is read from another queue. the issue is with JMS_IBM_Encoding value being defaulted to 273 by nifi.
the scenario i was trying to do is, read a msg from one IBM MQ queue and put it on a different queue as is without any modifications using nifi. meaning expecting the same functionality as dump and qload in IBM MQ terms.
Please advise on how to preserve these values as is forwarding with the message.

Not able to send bulk messages to Solace MQ

In my application we are using Solace MQ and use HermesJMS tool to send messages to MQ in the local environment.
When i try to send bulk messages to the MQ I get below mentioned Exception. I use Spring Integration code to consume message from the the Solace MQ
Caused by: com.solacesystems.jcsmp.transaction.RollbackException: Transaction '404' unexpectedly rolled back during commit attempt. (((Client name: ILCH-D889198/13740/#00020005 Local addr: 10.80.29.163:51052 Remote addr: appwpcuteai09.ntrs.com:55555) - ) com.solacesystems.jcsmp.JCSMPErrorResponseException: 503: Transaction Failure: The number of messages in the transaction exceeds the limit [Subcode:63])
at com.solacesystems.jcsmp.impl.transaction.TSState$StateCommitting.handleAsyncAdCtrl(TSState.java:528) ~[jcsmp-7.0.0.63.jar:?]
at com.solacesystems.jcsmp.impl.transaction.TransactedSessionImpl.handleControlMessage(TransactedSessionImpl.java:326) ~[jcsmp-7.0.0.63.jar:?]
at com.solacesystems.jcsmp.impl.transaction.TransactedSessionManager.dispatchAssuredCtrlMessage(TransactedSessionManager.java:91) ~[jcsmp-7.0.0.63.jar:?]
at com.solacesystems.jcsmp.impl.transaction.TransactedSessionManagerSmf.handleAsyncAssuredCtrlMessage(TransactedSessionManagerSmf.java:167) ~[jcsmp-7.0.0.63.jar:?]
is this exception related to some property in int-jms:message-driven-channel-adapter used from Spring integration or from Solace MQ properties. Please suggest.
The exception means that you are sending too many messages in a single transaction.
As of right now, Solace supports a maximum of 256 messages in a single transaction. Increasing the maximum is on Solace's feature candidate list, but not committed to a specific release yet.
For now, the only workaround is to reduce the number of messages in the transaction.

JMS Message wasn't deleted after it was received

What can be the reason of this problem?
Connection, Session were closed at the end.
I use WebLogic as JMS Broker. And I didn't find autodelete after receive option in JMS Queue configuration.

How to move the jms topic message to oracle AQ

How can we enqueue the messages of jms topic to oracle AQ using the java code?

Resources