How do I use just part of the GlassFish Application Server? I don't need or want everything.

This question was originally posed in this thread
and the issue has been raised before.

The forum member who posed the question wants to use just some of the functionality in GlassFish, but doesn't need or want all of it (for instance, use just the SIP servlet container but not EJB support, etc.).

Jerome responded:

This is not possible with GlassFish v2 since it would have required that each container can be plugged out. This is however the bulk of the work we are doing in GlassFish v3, where you will be able to get the exact set of features you require. We are not expecting to have the SIP container working in v3 anytime soon, most likely after the summer (of 2008). In the meantime, I am afraid you have no choice but to carry the extra baggage.

NOTE: What's planned for GlassFish v3 in this area is also discussed in What is the difference between Tomcat and GlassFish?.