I am trying to setup an ubuntu web server which utilizes both Apache's httpd web server for some content and glassfish for Java-based applications. I figured I would use mod_proxy as I've had luck playing with that a little in the past. I got it so the basic setup works. However, in trying to get glassfish running as a daemon, I found that the apache/glassfish connection breaks down anytime I stop/restart glassfish without restarting apache.
The basic directions I followed for setting up glassfish as a daemon can be found here: http://188.8.131.52/foo/entry/how_to_run_glassfish_v3.
A) Is there a way to configure things so I can restart glassfish without needing to restart apache? B) If not, is there a simple way to setup my glassfish daemon to restart apache at the same time without relying on glassfish and apache to both be on the system? In other words, it would be nice to have a script which would work cleanly on a server with glassfish and apache as well as a server with just glassfish.