Lightstreamer - Quickstart Example - BlackBerry Client
The Quickstart Example provides the source code to build very simple and basic client applications, used to test the capability of the Client APIs to connect and receive data from Lightstreamer Server. The examples can be used to familiarize with the Client APIs and as a reference on how to use them, and can be used as a starting point for client application implementations.
This project contains the source files of a sample application that shows how the Lightstreamer BlackBerry Client API can be used to connect to Lightstreamer Server.
Details
These examples, called "Tester" and "DistictTester", are not made for running on real devices, because the output is written on the console. Moreover, nothing is displayed on the display.
By the current configuration, specified in /src/javametest/Tester.java
and in /src/javametest/DistinctTester.java
, the demos try to connect to a local installation of Lightstreamer Server. If needed, the host name, port number, Adapter Set name, and Data Adapter name could be changed in the source code.
The demos are suitable for running with the QUOTE_ADAPTER, PORTFOLIO_ADAPTER, and CHAT_ROOM Data Adapters.
Check out the sources code for further explanations.
Build
To build and install a version of this demo, pointing to your local Lightstreamer Server instance, follow the steps below.
- The
Tester
class, needs both the PORTFOLIO_ADAPTER (see Lightstreamer - Portfolio Demo - Java Adapter), and the QUOTE_ADAPTER (see Lightstreamer - Stock-List Demo - Java Adapter). Therefore, as a prerequisite, the full version of the Lightstreamer - Portfolio Demo - Java Adapter has to be deployed on your local Lightstreamer Server instance. Please follow the instruction in Install the Portfolio Demo to install it. - The
DistinctTester
class needs the CHAT_ROOM Adapter, therefore, as a prerequisite, the Lightstreamer - Basic Chat Demo - Java Adapter has to be deployed on your local Lightstreamer Server instance. - Download the latest
ls-bb-client.jar
file from the Lightstreamer BlackBerry Client SDK resources into thelib
directory of the project. - Build the
Tester.java
and theDistinctTester.java
classes
See Also
Lightstreamer Adapters Needed by This Client
- Lightstreamer - Stock-List Demo - Java Adapter
- Lightstreamer - Portfolio Demo - Java Adapter
- Lightstreamer - Basic Chat Demo - Java Adapter
- Lightstreamer - Reusable Metadata Adapters - Java Adapter
Related Projects
Lightstreamer Compatibility Notes
- Compatible with Lightstreamer BlackBerry Client API v. 1.1.1 or newer.
- Ensure that BlackBerry Client API is supported by Lightstreamer Server license configuration.