https://github.com/linx-software/ibmmq-connection
Check connection to IBM MQ queue manager and queue. Used for figuring out what settings to use.
https://github.com/linx-software/ibmmq-connection
Last synced: 10 months ago
JSON representation
Check connection to IBM MQ queue manager and queue. Used for figuring out what settings to use.
- Host: GitHub
- URL: https://github.com/linx-software/ibmmq-connection
- Owner: linx-software
- License: mit
- Created: 2023-10-10T11:43:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T13:42:53.000Z (about 2 years ago)
- Last Synced: 2025-02-01T02:44:03.800Z (11 months ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Background #
This console app tests connectivity to an IBM MQ queue manager and a related queue. It was developed to test different connectivity options.
The app uses the [IBMMQDotnetClient](https://www.ibm.com/docs/en/ibm-mq/9.3?topic=reference-mq-net-classes-interfaces).
# Usage #
Update the appsettings.json file with the configuration you want to test and run the app.
The default configuration is in the [appsettings](src/appsettings.json) file and looks something like this:
````
{
"Settings": {
"ConnectionProperties": {
"CHANNEL_PROPERTY": "DEV.APP.SVRCONN",
"HOST_NAME_PROPERTY": "127.0.0.1",
"PASSWORD_PROPERTY": "passw0rd",
"PORT_PROPERTY": "1414",
"TRANSPORT_PROPERTY": "MQSeries Managed Client",
"USER_ID_PROPERTY": "app"
},
"QueueManagerName": "QM1",
"QueueName": "DEV.QUEUE.1",
"QueueOpenOptions": 9
}
}
````
From the [docs](https://www.ibm.com/docs/en/ibm-mq/9.3?topic=interfaces-mqqueuemanagernet-class#q111270___c), ConnectionProperties can be changed to any of these:
````
CONNECT_OPTIONS_PROPERTY
CONNECTION_NAME_PROPERTY
ENCRYPTION_POLICY_SUITE_B
HOST_NAME_PROPERTY
PORT_PROPERTY
CHANNEL_PROPERTY
SSL_CIPHER_SPEC_PROPERTY
SSL_PEER_NAME_PROPERTY
SSL_CERT_STORE_PROPERTY
SSL_CRYPTO_HARDWARE_PROPERTY
SECURITY_EXIT_PROPERTY
SECURITY_USERDATA_PROPERTY
SEND_EXIT_PROPERTY
SEND_USERDATA_PROPERTY
RECEIVE_EXIT_PROPERTY
RECEIVE_USERDATA_PROPERTY
USER_ID_PROPERTY
PASSWORD_PROPERTY
MQAIR_ARRAY
KEY_RESET_COUNT
FIPS_REQUIRED
HDR_CMP_LIST
MSG_CMP_LIST
TRANSPORT_PROPERTY
````
QueueOpenOptions can be any of the following. It's represented by an int so just add the numbers.
````
MQOO_BIND_AS_Q_DEF = 0;
MQOO_INPUT_AS_Q_DEF = 1;
MQOO_INPUT_SHARED = 2;
MQOO_INPUT_EXCLUSIVE = 4;
MQOO_BROWSE = 8;
MQOO_OUTPUT = 16;
MQOO_INQUIRE = 32;
MQOO_SET = 64;
MQOO_SAVE_ALL_CONTEXT = 128;
MQOO_PASS_IDENTITY_CONTEXT = 256;
MQOO_PASS_ALL_CONTEXT = 512;
MQOO_SET_IDENTITY_CONTEXT = 1024;
MQOO_SET_ALL_CONTEXT = 2048;
MQOO_ALTERNATE_USER_AUTHORITY = 4096;
MQOO_FAIL_IF_QUIESCING = 8192;
MQOO_BIND_ON_OPEN = 16384;
MQOO_BIND_NOT_FIXED = 32768;
````