OSGi's web development environment builds

Source: Internet
Author: User

The first step is to build an OSGI environment;

Open Eclipse, click run-"Run Configration:, configure as follows, click Run."

The result of the operation is as follows: The OSGi environment is built.

Step two: Build an OSGi-based Web development environment

Two ways: The first, tick the required bundle, list as

Second, tick the box below and click Add Required bundles, as

Click Run, the results are as follows:

Web Access, displaying the following information to show that OSGi's web environment has been built.

Step three: Write a simple Web service validation result (for example, a dictionary query)

Create a new Dictquery plug-in project that provides the interface for dictionary queries, as shown in

Export the interface package

Fourth step: Create a new local dictionary plug-in project and add dependencies

Fifth step: Add a remote dictionary and add dependent

Sixth step: Create a new HTTP plug-in project.

Create a new servlet

Modify Startup

Create a new HTML file

Run the result as shown in

Source of the entire project: http://yunpan.cn/cHNEAKPYmH7pp access password d74f

OSGi's web development environment builds

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.