GlassFish comes preconfigured with Apache Felix Gogo, which is an implementation of OSGi RFC 147, and is a proposed standard shell for OSGi environments. For Glassfish 4.0 there is no longer need to open a separate port to access the shell. The OSGi shell commands are integrated with asadmin, so you can now access the OSGi shell commands via asadmin tool. There is a remote command called osgi which accepts subcommands which are fed to the OSGi shell and their result returned via asadmin. This integration allows you to secure the OSGi commands using GlassFish admin credentials as well. If you have turned on