简体   繁体   中英

Accessing database from PHP in mixed PHP/Java EE server-side environment

is there a way to use PHP for database manipulation (ie a web application) in a Java EE environment. All the database interactions on the Java EE are done through JPA (Eclipselink) and I am wondering is there a way to use PHP directly, or do you need to always call stateless EJBs from PHP, which in turn call JPA?

The main issue is JPA "caching", ie the fact that JPA has tons of logic in itself, and also memory structures for pulled-out data, so if PHP modified something directly in the database, JPA would get out of sync.

If you haven't already, you can take a look at the PHP/Java bridge project:

http://php-java-bridge.sourceforge.net/pjb/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM