wpListener -start -

Starts the JSON wire listener.

Syntax diagram

Read syntax diagramSkip visual syntax diagramwpListener -start -mongoPort port-userid userid -password password
Read syntax diagramSkip visual syntax diagram-dbName db_name -logPath path-registrationFile registration_file
Read syntax diagramSkip visual syntax diagram-debug -minTCPThreads threads-maxTCPThreads threads

Command parameters

-mongoPort port
This parameter specifies a port that is listening for messages that are based on the MongoDB wire protocol.
-userid userid
This parameter specifies the user ID for the backend server.
-password password
This optional parameter specifies the password for the user ID for the backend server.
-dbName db_name
This parameter specifies the name of the Db2 database that is used as the NoSQL data store.
-logPath path
This parameter specifies the path for storing log files.
-registrationFile registration_file
This parameter specifies a registration file that contains credentials.
-debug
This optional parameter enables debugging for the wire listener.
-minTCPThreads threads
This optional parameter specifies the maximum number of transaction control protocol threads.
-minTCPThreads threads
This optional parameter specifies the minimum number of transaction control protocol threads.

Example

Example 1: Start the wire listener without wire listener authentication:
wpListener -start -mongoPort 27017 -userid db2admin 
-password pwd -debug dbName sample 
-logPath c:/temp/logs
Example 2: Start the wire listener with wire listener authentication:
wpListener -start -mongoPort 27017 -userid db2admin 
-password pwd -debug dbName sample 
-logPath c:/temp/logs -registrationFile c:/temp/credentials.bin