Configuring the wire listener

You must configure the wire listener to communicate with the Db2 database server.

Before you begin

Install the following prerequisite software for the wire listener:
  • Java™ JRE Version 1.6 or later
  • The wire listener library (db2NoSQLWireListener.jar)
  • The JSON library for NoSQL (nosqljson.jar)
  • Start of changeThe JDBC driver (db2jcc4.jar)End of change
Tip: The Java API is no longer the recommended approach for working with JSON data in Db2 for z/OS®. For best results, use SQL and the built-in functions that are supplied with Db2 for z/OS instead. For more information, see Working with JSON documents by using SQL.

Procedure

To configure the wire listener:

  1. Configure the Db2 database server and client to access the JSON API for NoSQL.
  2. Start the wire listener server in one of two ways:
    • On Windows operating systems, run the wplistener.bat script.
    • On Linux® and UNIX operating systems, run the wplistener.sh script.
    Applications that are based on community drivers must specify the wire listener host and port as well as a valid JSON namespace.

What to do next

Register the wire listener.