|
From: <php...@li...> - 2009-01-20 22:30:50
|
Hi, > How can I use the PHP-Java Bridge to connect PHP to MySQL > using the JNDI connection? Please see the MySQL API for details. An example is here: http://dev.mysql.com/doc/refman/5.0/en/connector-j-usagenotes-basic.html#connector-j-examples-connection-drivermanager > $dbh = mysql_connect("java:comp/env/jdbc/TestDB") Mamma mia... :) If you want to access the driver from a EJB session bean, please see our EJB example (http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=documentClient.php) how to access a session bean. Regards, Jost Boekemeier |