cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Sync and Async Scenario

udayabhaskar
Explorer
0 Kudos

Dear All,

The scenario that I am using is MQ - SAP - MQ - SAP.

In PI for MQ connection I am using JMS adapter and RFC adapter for SAP connection. MQ will send data to SAP and a response is sent. After MQ receives the response, it will send another data through the same queue which will be posted in SAP tables.

I have configured the MQ - SAP - MQ sync scenario. However, I am stuck on how to create the async scenario. Also, I need help on how to send header data in this sync scenario.

Please help me out on how to create the async scenario.

Regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

ambrish_mishra
Active Contributor
0 Kudos

Hi Uday,

I don't think it is possible to send the data with same structure in the same queue and treat it as async while the first interface is configured as a Synchronous scenario in PI.

Regarding the header data, you can check the JMS parameters associated with Dynamic configuration and play with these.

Hope it helps!

Ambrish

bhavesh_kantilal
Active Contributor
0 Kudos

Wouldnt the new scenario be an asynchronous scenario where you just configure a JMS to RFC scenario?

Regards

Bhavesh

udayabhaskar
Explorer
0 Kudos

Hi Bhavesh,

Both the synchronous and asynchronous scenarios are linked. First the synchronous scenario needs to be completed and then the asynchronous scenario will start. Both the synchronous and the asynchronous scenario will be using the same external definition (XSD).

How exactly should I be differentiating the data as the XSD is still the same? Which should be a synchronous and which an asynchronous.

Regards,

former_member182412
Active Contributor
0 Kudos

Hi Uday,

Why don't you tell them to put the asynchronous message in deifferent JMS Queue then you can create a separate channel for this and you can create asynchronous interface.

Regards,

Praveen.

udayabhaskar
Explorer
0 Kudos

Dear Praveen,

That is not a possible option. There are multiple channels being used and data can come to PI from any channel. Also, we need to use CCDT for the connection.

I have two other queries. Please do help me out on these.

Query 1:

Can you please help me out with the CCDT as I am getting an error when using the CCDT. I have placed the file in a folder in the server and maintained the same path in the communication channel. However, the location is not being recognized by the channel.

Query 2:

For the same scenario, I have two XSD's from which I will receive the data. They are synchronous scenarios. The RFC is the same for both. There are different fields in the RFC for both the scenarios. In the message mapping I have used the signature option and added both the XSD's and mapped them to the RFC. I am able to activate the server interface and message mapping. However, operation mapping is giving me an error

Request mapping program Message Mapping MM_XXX | urn://XXX does not match source interface. Mapping Program has a source message XXX at position 2. However, source interface has no source message at position 2.

Request mapping program Message Mapping MM_XXX | urn://XXX does not match target interface. Mapping program has source message RFC message XXX at position 2. However, target interface has no target message at position 2. 

What can be done for this?

Regards,