Connect PHP and Java

Source: Internet
Author: User
Connect PHP and Java Haohappy
PHP5 Research Center: PHP will be more popular than Java ", but" PHP will be more popular than Java ", but" PHP will be more popular than Java ", but "PHP will be more popular than Java", but "PHP will be more popular than Java", but "PHP will be more popular than Java ", but "PHP will be more popular than Java", but "PHP will be more popular than Java", but "PHP will be more popular than Java ", but "PHP will be more popular than Java", but "PHP will be more popular than Java", but "PHP will be more popular than Java ", but "PHP will be more popular than Java", but "PHP will be more popular than Java", but "PHP will be more popular than Java ", but "PHP will be more popular than Java", but "PHP will be more popular than Java", but "PHP will be more popular than Java ", but "PHP will be more popular than Java", but "PHP will be more popular than Java", but "PHP will be more popular than Java ", but "PHP will be more popular than Java" However, "PHP targeting the enterprise market and a positive contest with Java" is indeed in progress, and the technology adopted by 22 million websites around the world has to be paid attention.


The two technologies can be highly competitive or work closely together. From the customer's point of view, the integration of technologies is very important, because a large application system is usually not completed independently by a single language/technology. The emergence of PHP/Java Bridge will become a Bridge between PHP and Java, providing a good choice for enterprises that need to combine PHP and Java.


// Haohappy is not familiar with J2EE. if any of the above content is incorrect, you are welcome to criticize and advise.


(1) What is JSR and JSR223?


JSR (Java Standard request) is a formal request to add a standardized technical specification to the JCP (Java Community Process. Anyone can submit a JSR (Java Standard request) to add new APIs and services to the Java platform. JSR has become an important standard in the Java field.


In the Java Servlet Specification (Servlet 2.4, JSR-154), defines a series of core abstract concepts (various objects need to be considered in the WEB program processing process) to let Java programmers write WEB programs, including session, request, and response. When programmers write programs, they can easily and securely communicate with these objects. JSR223 describes how these Java objects are open to WEB pages written in other scripting languages so that other languages can access these objects. The current specification will be used in PHP, but this concept is independent of the scripting language, that is, it may be applied to other scripting languages other than PHP in the future. In a word, JSR223 aims to integrate the script language into the Java platform.


(2) What is PHP/Java Bridge?


PHP/Java runtime), used to connect the PHP object system to a Java or ECMA 335 (CLI, an important subset of Microsoft. NET Framework) virtual machine. It fully implements JSR 223 standard requests and enables PHP scripts to access applications based on CLR (such as VB. NET, C #) or Java (Java, KAWA, JRuby. PHP/Java Bridge communicates with virtual machines through an efficient communication protocol through a local socket. A multi-process "> javax. script Package.

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.