Point-to-Point (-PP)
The Point-To-Point adapter command (-PP) is used only on data sources. If this command is specified, a unique inbox subject name is created and one message is published on a subject specified using the Subject Name adapter command (-SBN) with its reply subject set to the inbox name.
-PP
For example, to implement point-to-point connection between a sending map (Map1) and a receiving map (Map2), see the following procedure.
To implement point-to-point connection
- Select the my.pp.connection subject name upon which information about the unique inbox name will be exchanged.
- Specify the following GET > Source > Command settings
for the Card1 input card of Map1:
-SBN my.pp.connection -HDR
- Map the data object representing the header reply from the Card1 input card of Map1 to the data object representing the header subject in an output card for the Card2 example.
- Specify the following GET > Source > Command setting
for the Card1 input card of Map2:
-SBN my.pp.connection -PP
- Run Map1.
- Run Map2.
The adapter of the Card1 input card of Map2 will create a unique inbox name called _INBOX.something with a call to the tibrvTransport_CreateInbox() function. Then it will publish a message on the my.pp.connection subject with the reply subject of the message set to the _INBOX.something unique inbox subject name. It will then start to listen for messages on the _INBOX.something subject name.