On the source machine, I'm using the following script command to create a backup of QM1:
Original Message:
Sent: Thu August 24, 2023 09:37 AM
From: UMAMAHESH PONNUSWAMY
Subject: How to create subscription type API in IBM MQ v9.*
Hi Hosh,
Could you please share the migration steps and the type of subscription (durable or non-durable) not getting migrated.
Regards,
mahesh
------------------------------
UMAMAHESH PONNUSWAMY
Original Message:
Sent: Thu August 24, 2023 09:18 AM
From: Hosh Mohammad
Subject: How to create subscription type API in IBM MQ v9.*
This approach has been effective, and I appreciate your help. However, I've encountered an issue during the queue manager migration process. It appears that the API-type subscribers, specifically those with a subtype of "API," are not getting migrated successfully. Do you have any insights on what might be causing this issue?
Thanks
------------------------------
Hosh Mohammad
Original Message:
Sent: Wed August 23, 2023 03:59 AM
From: UMAMAHESH PONNUSWAMY
Subject: How to create subscription type API in IBM MQ v9.*
Hi Hosh,
To add to Morag's suggestion, if you want subname you can use amqssbxa sample.
Excerpt from amqssbxa.c sample source code:
AMQSSBXA has the following parameters
required, at least one of:
-t <string> Topic string
-o <name> Topic object name
optional:
-m <name> Queue manager name
-b <type> Connection binding type (def = standard)
standard MQCNO_STANDARD_BINDING
shared MQCNO_SHARED_BINDING
fastpath MQCNO_FASTPATH_BINDING
isolated MQCNO_ISOLATED_BINDING
-q <name> Destination queue name
-w <seconds> Wait interval on MQGET (def = 30)
unlimited MQWI_UNLIMITED
none no wait
n wait interval in seconds
-d <subname> Create/resume named durable subscription
-k Keep durable subscription on MQCLOSE
Example invocations:
# Create an unnamed non-durable subscription to /news on QM1
amqssbx -m QM1 -t /news
# Create or resume a durable subscription named MySub
# to /sport/results on QM1
amqssbx -m QM1 -d MySub -t /sport/results
# Create or resume a durable subscription named LotterySub to
# lottery.results and end immediately when no more messages
# exist. Do not remove subscripton when program ends.
amqssbx -m QM1 -d LotterySub -t lottery.results -w none -k
------------------------------
UMAMAHESH PONNUSWAMY
Original Message:
Sent: Tue August 22, 2023 03:45 PM
From: Morag Hughson
Subject: How to create subscription type API in IBM MQ v9.*
Hi Hosh,
You should review the code in the IBM-supplied sample amqssuba.c and run the same compiled sample amqssub. This uses MQSUB and will create a SUBTYPE(API) subscription. Here is an example invocation, where MQG1 is my queue manager name.
amqssub Test MQG1
Bear in mind that this subscsription is not given a subname and so when you display it, you will see a blank name for the SUB.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Tue August 22, 2023 05:17 AM
From: Hosh Mohammad
Subject: How to create subscription type API in IBM MQ v9.*
Hi All,
I need your help to create subscription type API in IBM MQ v9.*. As documentation says API: Subscription created through an MQSUB API request.
I am not sure how to use MQSUB API to create subscription.
Any help will be highly appreciated.
Thanks
------------------------------
Hosh Mohammad
------------------------------