Step 2: Preparing Your Applications
Creating Your Applications
In this step you will create your Producer and Consumer applications in Self-Service to make sure that your actual application is authorized to both produce and consume from the stream you have just created.
Log in to the Self-Service portal using the credentials supplied by Axual. The following screen will be shown:
-
Click "Applications" (displayed in the picture above) followed by "New application"
-
Define a name for your application, e.g. "my_producer"
-
Enter a relevant description of your application
-
Select "AO Group" as your team
-
Select "Java" as the application type
-
Leave visibility to "Public"
-
Click "Create application" to create the application
You will see that the stream is created, but a principal needs to be added for the "Getting Started" environment.
Configuring The Application
When configuring the application, you add a principal for a certain environment.
-
Click "Configure"
-
Enter the certificate DN as the principal for this environment
-
Click "Save" to configure your application. You can now request access to the stream.
Repeat the steps above for your Consumer application, and name it "my_consumer" |
Requesting Stream Access
Once you’ve added a principals for your applications you will need to request access to the stream:
-
Click + Add Request
-
Click Producer or Consumer in the "Application Type" section, depending on whether you are creating a request for your producer or consumer app.
-
Select "my-example-stream" in the "Stream" dropdown
-
Select Getting Started in the "On environment" dropdown
You should now have a modal that is configured as follows:
Finally click Request Approval and the applications access will be automatically accepted and our application will be producing to our stream, you can follow the same process as above for configuring a Consumer it just requires changing the Application Type.
Once you’ve successfully requested access and it’s showing as approved your ready to move onto the next step 3. Producing Data