30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

Zend Java Bridge - PHP API<br />

Table of Contents<br />

256<br />

• JavaException - The JavaException class<br />

o JavaException::getCause - Get the Java exception that led to this exception<br />

• Zend Java Bridge functions<br />

o java - Creates a Java object<br />

o java_last_exception_get - Returns a Java exception object for the last exception that<br />

occurred in the script: only the last exception is stored by the Java Bridge<br />

o java_last_exception_clear - Clears the last Java exception object record from the Java<br />

Bridge storage<br />

o java_set_ignore_case - Sets the case sensitivity for Java calls when there are mixed<br />

cases in your PHP script<br />

o java_throw_exceptions - Controls if exceptions are thrown on Java exception. When an<br />

exception is thrown by a Java application, this function controls if the exception caught by<br />

the PHP code will continue to be thrown or not (if not, it is stored in the Java Bridge's<br />

internal memory)<br />

o java_set_encoding - Sets encoding for strings received by Java from the PHP code to<br />

verify that the encoding is the same in the PHP and Java code<br />

o java_require - Includes an additional CLASSPATH/JAR in a PHP script context<br />

o java_reload - Reloads Jar files that were dynamically loaded - on demand

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!