Skip to main content

Running osgi shell commands with asadmin in Glassfish

Posted by bhaktimehta on November 20, 2012 at 12:24 PM PST

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

Related Topics >>

Comments

Thanks for taking time to write this up. Very nice.

Thanks for taking time to write this up. Very nice.