Offline access using the OSGi framework of SmartCloud entry

Source: Internet
Author: User
Keywords Smartcloud osgi entry offline access
Tags access aliyun clients data db2 eclipse embedded environment

The SmartCloud Entry supports the user in selecting a Derby database to bring with them, or using the DB2 database. The purpose of this article is to show you how to access the system's own Derby database, because DB2 itself provides accessible clients, so it is not covered in this article.

Environmental preparedness

A running http://www.aliyun.com/zixun/aggregation/13696.html ">smartcloud Entry 2.3/2.4 System Eclipse 3.6 or later when writing this article, Derby The latest version is 10.9.1.0, which you can download at Derby's official website

Derby Introduction

The Derby database is a purely Java-implemented memory database that belongs to an open source project in Apache. Because it is implemented in Java, it can be run on any platform, and another feature is small, installation-free, requiring only a few small Jar packs to run.

The Derby engine can be embedded in the application. When working in embedded mode, application access to the database is direct and proprietary. This means that other applications cannot access the database at the same time.

Offline access to the database

The Derby database used by SmartCloud Entry is working in embedded mode, so in general, we can only access the offline database, which requires you to stop SmartCloud Entry instance before we can continue.

The SmartCloud Entry database will be stored in different configurations, with the default configuration stored in the. Skc/database under the current user directory, and there are many tools available to access the Derby database, where we mainly use the Eclipse's own data Source Explore.

First, let's Open the Data Source Explore first. In Eclipse, select Menu Window/show view/other, select Data Source Explore, as shown below

Figure 1. Select Data Source Explore

After the confirmation, the effect is as follows

Figure 2. Data Source Explore Default view

Now let's add a connection that connects to the Derby database. We can right-click on "Database 50x15" and choose New.

Figure 3. New Derby Connection

We chose database Derby and specified names, such as "SmartCloud Entry database", next.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.