To answer your question Glassfish is an application that runs on top of
a Sun Java Application Server.
Remember that this server is independent of Apache or any services.
This is strictly a java environment.
Please review the following information to arm your-self with additional
knowledge.
http://developers.sun.com/appserver/