SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Code the Streaming Lite Custom Java Adapter

Walk through the steps for coding the Streaming Lite Custom Java Adapter for Freezer Monitoring Lite.

Overview

Robert Waywell R Robert Waywell August 21, 2026
Created on April 17, 2018
Contributors

More from Robert Waywell

See all 21 tutorials by Robert Waywell →

Prerequisites

Steps

Next Steps

Intro

The full source code for the Custom Java Adapter is available in the ‘Appendix’ section of this tutorial.


Step 1 Import Statements

Add the following import statements required to create our custom Java Adapter, below our package custom_java_adapter line:

Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Date;

import javax.security.auth.login.LoginException;

import com.sybase.esp.sdk.Credentials;
import com.sybase.esp.sdk.Project;
import com.sybase.esp.sdk.SDK;
import com.sybase.esp.sdk.Stream;
import com.sybase.esp.sdk.Stream.Operation;
import com.sybase.esp.sdk.data.MessageWriter;
import com.sybase.esp.sdk.data.Publisher;
import com.sybase.esp.sdk.data.RelativeRowWriter;
import com.sybase.esp.sdk.exception.EntityNotFoundException;
import com.sybase.esp.sdk.exception.ServerErrorException;
Step 2 Declare Global Instance
+
Step 3 Method 1: exec()
+
Step 4 Declaring Adapter Variables
+
Step 5 Try/Catch
+
Step 6 SDK Preparation Calls
+
Step 7 Set Up the Loop
+
Step 8 SDK Row Writing Calls
+
Step 9 Stopping the SDK
+
Step 10 Appendix
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Import Statements 2. Declare Global Instance 3. Method 1: exec() 4. Declaring Adapter Variables 5. Try/Catch 6. SDK Preparation Calls 7. Set Up the Loop 8. SDK Row Writing Calls 9. Stopping the SDK 10. Appendix
Next