Mantis - Quercus
Viewing Issue Advanced Details
1181 feature always 06-05-06 18:22 03-21-07 12:04
closed 3.0.20  
none 3.1.0  
0001181: Command-line Quercus
Once Quercus is established, people will want to migrate some or all of their business logic to Java code. That will present a problem for people who have non-Web-based PHP scripts (e.g. cron jobs or interactive shells) that need to make use of that business logic; there is no equivalent of the "php" command to run Quercus without a web container.

For example, my site has some database administration scripts that call our internal (PHP) APIs to ensure that our various caches get invalidated correctly. That would be ideal logic to move to Java code, but we don't want to have to rewrite all the administrative tools in Java as well.

03-21-07 12:04   
Quercus can be run outside of a web server through the new Java 6 javax.script interface. Only JDK 5+ is needed if you use the javax.script API bundled with Quercus, otherwise JDK 6 is required.