Php/Java Integration

前端 未结 5 482
挽巷
挽巷 2020-12-11 21:13

Have you experience of integration of php and Java? I\'ve written a class in Java \"Hello\". Now I want to call its method from php when I create an instance of this class f

5条回答
  •  佛祖请我去吃肉
    2020-12-11 21:52

    Have a look at:

    PHP-Java Bridge

    The PHP/Java Bridge is an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine. It is up to 50 times faster than local RPC via SOAP, requires less resources on the web-server side. It is faster and more reliable than direct communication via the Java Native Interface, and it requires no additional components to invoke Java procedures from PHP or PHP procedures from Java.

提交回复
热议问题