How to Develop Web applications in equinox Environment

Source: Internet
Author: User

 

 

To develop a web application in the Equinox environment, you must use the functions provided by some toolkit to achieve the interconnection of resources between the Web server and the Equinox environment.

Equinox provides the org. Eclipse. Equinox. http. helper package to register the web application content in the form of bundle in the Equinox environment to the web server. The content covers all Java Servlet specifications, including servlet, filter, and listener. We can also integrate the traditional Java technical framework spring + Struts + hibernate + acegi into the Equinox environment and continue to exert their advantages. At the same time, the existing traditional Java technical framework development projects and products are encapsulated, dynamically deployed, and run in the Equinox environment.

The Org. Eclipse. Equinox. http. helper package provides six classes:

Resourceservlet. Java
Bundleentryhttpcontext. Java
Contextinitparametersservletadaptor. Java
Contextlistenerservletadaptor. Java
Contextpathservletadaptor. Java
Filterservletadaptor. Java

In addition, equinox provides the httpservice interface in the org. osgi. Service. http package. This interface defines two methods to register bundle resources with the Web server.

SubsequentArticleThe usage and instances of the classes mentioned above are explained one by one.

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.