Java Integration

Prerequisites
Complete review of the Getting Started section.
Review of the Digging Deeper section.
A program registered to the ISB (for the purposes of this integration).

Java Integration Steps:

  1. Download the preconfigured database file for your program, as well as copy your program's Activity ID (assigned when you registered it to the ISB).
  2. Open Eclipse and your solution.
  3. Add the Linxter SDK (linxter-java.jar) to your project. In the Package Explorer view, right click on lib and select Import - from File System. Browse to the folder you stored it in and select it.
  4. Add the preconfigured database file (linxtersdkdb.db) to your project. Right click on the project and select Import - from File System. Browse to the folder you stored it in and select it.
  5. You will now need to add the supporting SQLite files to your project. Right click on the project and select Import - from File System. Browse to the folder you stored them in. These files can be found in the Auxiliary Deployment Files folder in your Linxter SDK download.
  6. Now you’re ready to start writing code. Depending on where in your code you want Linxter to reside, add these:
    import com.linxter.*; import com.linxter.entities.*; import com.linxter.events.*; import com.linxter.exceptions.*;

  7. The Linxter SDK class exposes three interfaces, all of which are implemented implicitly by the public API of the the LinxterSDK class. Implement based on what makes sense for your solution. To instantiate, use this:
    LinxterSDK linxter = new LinxterSDK4Java();

  8. You are done! Linxter has been integrated into your program. You can now begin to use the methods, properties and events of the Linxter API interfaces:
    • Registration
    • CommunicationChannel
    • Messaging
  9. Note: In your code, when you call the CreateMessage() or CreateMessages() method, you will need to include your program's ActivityID which was generated when you registered your program to the ISB.

    When you are ready to deploy your Linxter enabled application, be sure to review our Deployment guidelines.