Using Java and PHP technology for development in Aix Version 5.3, part 5th

Source: Internet
Author: User
Tags php and web services tomcat

Part 5th: Installing and integrating PHP Java Bridge

Introduction: Applications that use Java™ and PHP technologies can be developed in aix®. This article is part 5th of a total of six sections in this series, which will explain how to install, set up, and integrate PHP Java Bridge into the Tomcat application server, allowing you to develop a PHP Web interface.

About this series

PHP is a very good web development language, and java™ technology is very popular in business application development. Therefore, in order to fully utilize their advantages on the Aix®version 5.3 operating system, PHP Java Bridge is specially developed. This series of articles provides AIX 5.3 developers with an overview of how to integrate PHP and Java technologies into their Web application development.

To illustrate this, you will build a simple survey application based on the typical development process, including:

Developing a major Java application

Exposing Java applications as Java-based Web applications through the servlet

Adding support for storing information in a database

Exposing the original application as a Web service and providing the PHP interface for the application

Re-developing the PHP interface with a dedicated PHP Java bridge

This series of articles consists of six parts:

Part 1th describes an application and sets the environment for building Java applications and for performing Java-based Web applications using Tomcat.

The 2nd part introduces the main application code and the development of a simple Java servlet to provide a web interface for information.

Part 3rd connects the core application to the db2® database to store the questions and answers to the questionnaire survey.

Part 4th transforms the original application so that it can be accessed as a Web service, and it provides the basis for the PHP interface.

The 5th part uses PHP Java Bridge to build the PHP interface for Java applications.

The 6th part is to recreate the application to use PHP Java Bridge instead of the Web service interface.

A second discussion on Web services solutions

In part 4th of this series (see Resources), you expanded the original Java application and made it public through a Web service. Using Web services to expose applications has many advantages, but one of the most important is to improve interoperability.

Web services are compatible with a wide variety of platforms, languages, and environments. After you expose your application through a Web service, you can access it from any computer that uses a variety of languages, including Perl, Python, JavaScript, Java, and of course PHP.

Web services expose Web service functions through a URL (for example, your Getsurveyquestioncountreponse () method). You can then encode the message returned by the client, which is sent to the server, as an XML message.

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.