Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohini_potham3
Explorer
1,095

SAP CPI with SOLACE PUB SUB DEMO:

ScenarioTrying to send data from CPI to SOLACE

SOLACE – Create a trial account.

Navigate to below:

Cluster Manager -> Create a service

1.png

When you open the Service created and move to Try-me option, you can see credentials used to send/receive data from SOLACE (client username & client password)

 

2.png

SOLACE -> Service -> Broker Manager -> Queue 

Create a queue name SOurce and topic ROHINI under the queue.

 

Under Queue, you can create a topic as well.

 

4.png

First you can check SOLACE using the Event Broker -> Try-me

 

5.png

6.png

Give same connection details on subscriber and same topic/queue details to consume message from publish on left side.

 

7.png

You can see in below snapshot that the message is received well

8.png

The above steps to confirm if credentials & host details are working fine.

Now let’s connect the external system to send data to SOLACE.

Steps

  1. Create user name, client & ACL profile

Broker Manager -> ACL Profile

Check all things that needs to be created

9.png

I have used default profile in this case instead of creating a new one

Enter the entries for adding topics to be published or subscribed for that ACL profile

10.png

 

We are now done with connections on the SOLACE.

Now comes the CPI part:

  1. Download the SOLACE PUB SUB SDA file from SOLACE
  2. Package -> Edit -> Add new Integration adapter & browse the downloaded SDA file.
  3. Deploy this artifact & now we can see SOLACE PUB SUB adapter to use on IFLOW
  4. Create a dummy sender using TIMER & add content modifier to have some message sent to SOLACE

12.png

 

SOLACE connection details:

Host name is copied from Status tab of service name

 

13.png

User credentials for demo are taken from Try-me tab of service

 

14.png

Host name prefixed by tcps:

 

15.png

16.png

17.png

Testing:

Deploy the iflow and see that its working

Now check the SOLACE queue to see entry

 

18.png

I have tried to consume messages after it is queued there in SOLACE, using Try-me consumer

Now, the queue size is 0

20.png

Please note: The same configuration will also work with Advanced Event Mesh adapter in CPI

Thanks,

Rohini Potham

10 Comments
Labels in this area