Thanks, Rob!
I really want to avoid Tomcat and any servlet container. Part of my love
for Restlet is the fact that I don't need that excess fat. My ideal
would be Restlet growling over Grizzly (the connector is still buggy in
the current M4). The PHP/Java bridge seems useful, but also complex to
set up.
I'll keep the list posted when I find a nice solution.
What I'm up to now: I simply set Apache's mod_proxy to go to my Restlet
server. So, now that they're on the same host/port, Restlet should have
access to the PHP-generated cookie in the client. I just need to
translate my cookie-encoding code to PHP so that I can share my cookies
between PHP and Java, and I'm set.
-Tal
Rob Heittman wrote:
You've bitten off a bit of a tough problem ... PHP to Java integration
generally is a challenge.
Restlet running under Tomcat, running under Apache HTTPD via AJP seems
to be a common way of running Restlet applications in an Apache HTTPD
environment, but I don't know if you can get to the PHP global variables
in the way you need. Certainly if you could run Restlet under Tomcat
under the same Apache container as PHP, you could set whatever cookies
you want to transfer information.
I would also recommend looking at the php/Java Bridge:
http://php-java-bridge.sourceforge.net/doc/ What you want may not be
there directly, but this project's community is extremely knowledgeable
about the general php/Java problem and its solutions.