cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Sender: Fetch messages only, if the previous message was successful

filipe_rieger
Explorer
240

Hello Experts,

is there a way to configure the JMS Sender Adapter in a way, that PI receives the next JMS message only, if the previous message was processed successfully?

The purpose of this, was to use our message Bus for queuing. We would like to outsource the queuing from our PI.

In some scenarios we sometimes receive so much masterdata that our PI struggles to process it, especially, if the target system is not available.

So instead of this:

ECC -(MATMAS)-> PI -> Target System

We would like to have this:

ECC -(MATMAS)-> Message Bus --(JMS)--> PI

But this makes only sense, if PI fetches the messages from the Message Bus, if the previously received MATMAS was processed successfully. Otherwise PI starts again queueing.

View Entire Topic
rakeshdamera
Participant
0 Kudos

Hi Filipe,

This may not be ideal in all scenarios. In some cases, the messages on the queue will be accumulating unless the previous message issue is fixed/addressed and causing JMS server to crash.

I would still let PO pull the messages, process and deliver them to the end system. You can tune the interface further to account for peak volume, message size, availability etc.

And if the target system is an SAP system capable of handling Idocs, you can have the Idocs delivered (not posted immediately) and processed through a background job to increase interface throughput.

Hope that helps.

Rakesh